Index: ChangeLog =================================================================== RCS file: /cvs/gnome/gnome-xml/ChangeLog,v retrieving revision 1.453 diff -u -r1.453 ChangeLog --- ChangeLog 2001/05/03 11:15:36 1.453 +++ ChangeLog 2001/05/03 18:41:32 @@ -1,3 +1,8 @@ +2001-05-03 Jonas Borgström + + * HTMLparser.c: Inverted the meaning of the htmlEndClose list. + It is now called htmlNoEndClose. + Thu May 3 13:10:43 CEST 2001 Daniel Veillard * configure.in doc/xml.html doc/html/*: preparing for 2.3.8 Index: HTMLparser.c =================================================================== RCS file: /cvs/gnome/gnome-xml/HTMLparser.c,v retrieving revision 1.82 diff -u -r1.82 HTMLparser.c --- HTMLparser.c 2001/05/03 08:27:14 1.82 +++ HTMLparser.c 2001/05/03 18:41:33 @@ -565,12 +565,12 @@ }; /* - * end tags that imply the end of the inside elements + * end tags that do NOT imply the end of the inside elements */ -const char *htmlEndClose[] = { -"head", -"body", -"html", +const char *htmlNoEndClose[] = { +/* Currently empty, but there might be some element that + * people that write html-pages manually often write an + * end tag to many */ NULL }; @@ -674,7 +674,7 @@ htmlAutoCloseOnClose(htmlParserCtxtPtr ctxt, const xmlChar *newtag) { htmlElemDescPtr info; xmlChar *oldname; - int i, endCloses = 0; + int i, endCloses = 1; #ifdef DEBUG xmlGenericError(xmlGenericErrorContext,"Close of %s stack: %d elements\n", newtag, ctxt->nameNr); @@ -686,9 +686,9 @@ if (xmlStrEqual(newtag, ctxt->nameTab[i])) break; } if (i < 0) return; - for (i = 0; (htmlEndClose[i] != NULL);i++) - if (xmlStrEqual(newtag, (const xmlChar *) htmlEndClose[i])) { - endCloses = 1; + for (i = 0; (htmlNoEndClose[i] != NULL);i++) + if (xmlStrEqual(newtag, (const xmlChar *) htmlNoEndClose[i])) { + endCloses = 0; break; }