Re: [xml] Possible malformation "bug" in libxml2



Solution offered!  See the original thread here:

http://mail.gnome.org/archives/xml/2004-January/msg00098.html

A simple copy-paste of the "Drop tag like browsers do" worked great.  Here's
the diff against 2.6.4 12/24/2003 code:

3240,3242d3239
<         /* Dump the bogus tag like browsers do */
<         while ((IS_CHAR_CH(CUR)) && (CUR != '>'))
<             NEXT;
3250,3252d3246
<         /* Dump the bogus tag like browsers do */
<         while ((IS_CHAR_CH(CUR)) && (CUR != '>'))
<             NEXT;
3262,3264c3256,3257
<                 /* Dump the bogus tag like browsers do */
<                 while ((IS_CHAR_CH(CUR)) && (CUR != '>'))
<                     NEXT;

This covers both cases of <html> and <body> (I hope?).  Comments, criticism,
testing, appreciated!



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