bug-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-cgicc] cgicc bug?


From: Stephen F. Booth
Subject: Re: [bug-cgicc] cgicc bug?
Date: Fri, 18 Feb 2005 08:41:28 -0500
User-agent: KMail/1.7.92

Thanks for the patch!  But believe it or not, I actually left those elements 
out intentionally.  Back when this file was written HTML 4.0 was the standard 
(there was no XHTML) but if you use HTML, v4.01 is current.  The elements you 
mention, FONT and CENTER, are actually "deprecated" (a word we have to thank 
Java for!)-
http://www.w3.org/TR/html4/present/graphics.html#edef-FONT
http://www.w3.org/TR/html4/present/graphics.html#edef-CENTER
The thinking behind this (as far as I can tell) was to divorce strictly 
presentation issues from html itself, and use stylesheets to replace those 
elements.
Anyway, that's the reason there aren't in there.  But obviously feel free to 
use them in your code.

Stephen

On Thursday 17 February 2005 17:02, John Cochran wrote:
> Greetings,
>
> It seems that the HTMLClasses.h file is missing quite a few html tags.
> An easy work around is the place the BOOLEAN_ELEMENT() and ATOMIC_ELEMENT()
> macros within my source code, but anyway it surprised me that two
> basic tags "font" and "center" were missing from the default installation.
> Here is a diff that will add the missing tags.
>
> --- CUT HERE ---
> diff -U 5 cgicc.old/HTMLClasses.h cgicc/HTMLClasses.h
> --- cgicc.old/HTMLClasses.h   Thu Feb 17 16:53:24 2005
> +++ cgicc/HTMLClasses.h       Thu Feb 17 16:57:47 2005
> @@ -136,10 +136,11 @@
>    ATOMIC_ELEMENT  (br,         "br");         // line break
>    BOOLEAN_ELEMENT (pre,        "pre");        // preformatted text
>    BOOLEAN_ELEMENT (ins,        "ins");        // inserted text
>    BOOLEAN_ELEMENT (del,        "del");        // deleted text
>    BOOLEAN_ELEMENT (bdo,        "bdo");        // overriding direction
> +  BOOLEAN_ELEMENT (center,     "center");     // center text
>
>    // lists
>
>    BOOLEAN_ELEMENT (ul,         "ul");         // unordered list
>    BOOLEAN_ELEMENT (ol,         "ol");         // ordered list
> @@ -181,10 +182,11 @@
>    BOOLEAN_ELEMENT (tt,         "tt");         // monospaced text
>    BOOLEAN_ELEMENT (i,          "i");          // italic text style
>    BOOLEAN_ELEMENT (b,          "b");          // bold text style
>    BOOLEAN_ELEMENT (big,        "big");        // large font
>    BOOLEAN_ELEMENT (small,      "small");      // small font
> +  BOOLEAN_ELEMENT (font,       "font");       // arbitrary font
>
>    // frames - not part of the strict DTD
>
>    BOOLEAN_ELEMENT (frameset,   "frameset");   // frame layout
>    ATOMIC_ELEMENT  (frame,      "frame");      // frame contents
>
>
> _______________________________________________
> bug-cgicc mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-cgicc

Attachment: pgpaGPf0kSYH2.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]