Re: cgicc bug?

"Stephen F. Booth" <[email protected]> Fri, 18 Feb 2005 08:41:28 -0500
Newsgroups gmane.comp.gcc.cgicc.bugs
Message-ID <[email protected]>
--===============1236512241==
Content-Type: multipart/signed; boundary="nextPart2520984.84O1XSaV61";
	protocol="application/pgp-signature"; micalg=pgp-sha1
Content-Transfer-Encoding: 7bit

--nextPart2520984.84O1XSaV61
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Thanks for the patch!  But believe it or not, I actually left those element=
s=20
out intentionally.  Back when this file was written HTML 4.0 was the standa=
rd=20
(there was no XHTML) but if you use HTML, v4.01 is current.  The elements y=
ou=20
mention, FONT and CENTER, are actually "deprecated" (a word we have to than=
k=20
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=20
presentation issues from html itself, and use stylesheets to replace those=
=20
elements.
Anyway, that's the reason there aren't in there.  But obviously feel free t=
o=20
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
> [email protected]
> http://lists.gnu.org/mailman/listinfo/bug-cgicc

--nextPart2520984.84O1XSaV61
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBCFfCLZR1UqTniWR8RAnjjAJ9lI7FDaLaIruEUgmpBuQKwzOjM9gCfQLNj
/4pw4PHuiBTDGMiAAlrXNO8=
=wTF+
-----END PGP SIGNATURE-----

--nextPart2520984.84O1XSaV61--



--===============1236512241==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
bug-cgicc mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-cgicc

--===============1236512241==--