- From: Sam Couter <sam@topic.com.au>
- Date: Tue, 17 Aug 1999 22:55:19 +1000
- To: www-lib@w3.org
It took me a while to work out why the element number being passed to my
beginElement() function wasn't the number I thought it should be. I was
coming across META tags, but as far as my debugger was concerned (and the
program itself, for that matter), it was a MENU tag.
It turns out, in HTMLPDTD.c, the MENU tag is interchanged with the META tag,
so now the order is different to the enumeration in HTMLPDTD.h.
Oops.
Short and sweet patch:
Index: HTMLPDTD.c
===================================================================
RCS file: /sources/public/libwww/Library/src/HTMLPDTD.c,v
retrieving revision 2.29
diff -u -r2.29 HTMLPDTD.c
--- HTMLPDTD.c 1999/04/02 16:10:36 2.29
+++ HTMLPDTD.c 1999/08/17 12:27:17
@@ -801,8 +801,8 @@
{ "LI" , li_attr, HTML_LI_ATTRIBUTES, SGML_EMPTY },
{ "LINK" , link_attr, HTML_LINK_ATTRIBUTES, SGML_EMPTY },
{ "MAP" , map_attr, HTML_MAP_ATTRIBUTES, SGML_MIXED },
- { "META" , meta_attr, HTML_META_ATTRIBUTES, SGML_EMPTY },
{ "MENU" , gen_attr, HTML_GEN_ATTRIBUTES, SGML_MIXED },
+ { "META" , meta_attr, HTML_META_ATTRIBUTES, SGML_EMPTY },
{ "NEXTID" , nextid_attr, 1, SGML_EMPTY },
{ "NOFRAMES", gen_attr, HTML_GEN_ATTRIBUTES, SGML_MIXED },
{ "NOSCRIPT", gen_attr, HTML_GEN_ATTRIBUTES, SGML_MIXED },
--
Sam Couter sam@topic.com.au
Internet Engineer
tSA Consulting
Received on Tuesday, 17 August 1999 09:03:46 UTC