From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Fri Oct 08 1999 - 10:42:18 EDT
Hi Kristian,
> I've been working with the HTML parser that comes with gnome-xml, and
> after debugging my own code for a while because of some weird nesting
> of lists, I realized that the HTML parser doesn't infer </li> when
> current element is <li> and a new <li> is seen. Shouldn't it do so?
> I added "LI" to the "LI" entry in the htmlStartClose array in
> HTMLParser.c, line 302, and it all worked allright.
Fixed, you were right.
> By the way, I would really like to use the HTML parser with the SAX
> interface, however this isn't possible, since the parser looks at the
> currently open element to infer close tags, and the element stack is
> maintained by the DOM building default SAX handler. On the other hand
> I cant maintain the element stack in my SAX handler, since I dont have
> access to the parser context there.
Fixed too, the parser don't uses the DOM produced tree for pure
parsing anymore,
I have commited the fixes both on Gnome and W3C CVs bases, you can grab
a snapshot with the fixes at
ftp://rpmfind.net/pub/XML/cvs-snapshot.tar.gz
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux, WWW, rpmfind, Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | rpm2html, XML, http://www.w3.org/People/W3Cpeople.html#Veillard | badminton, and Kaffe. ---- Message from the list xml@rufus.w3.org Archived at : http://rufus.w3.org/veillard/XML/messages to unsubscribe: echo "unsubscribe xml" | mail majordomo@rufus.w3.org
This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:48 EDT