From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Oct 11 1999 - 18:25:14 EDT
> Did you try it on *exactly* the above example? In particular the error
> only surfaces, when there's no whitespace between </ol> and </body>.
> I just checked out the W3C cvs version and it still has the bug.
Ok, got it. Strange I was really sure I tested with the same example ...
sorry about that. I also need to change a couple of other piece
otherwise the change triggers problems elsewhere.
> > autoclose OL, if yes that's an error, and this explains why the parser
> > later on complains about an OL not being open ...
>
> Okay, I probably wasn't very clear there. What I meant was that, when
> seeing the "<" of <li> in htmlParseContent, htmlParseElement is
> called. This reads data up to and including the ">" of </ol> and when
> returning from the call the li and ol elements have been closed, and
> htmlParseContent should just return then. However, the test for
> wether current element has been autoclosed is never reached, since the
> parser is now looking at "</" from </body>, which terminates the loop.
> When the loop terminates htmlParseEndTag is called, which tries to
> parse </body> as the closing tag for <ol>
I certainly need to add more test cases, as the code progresses
catching those should be done as much as possible in a systematic
way. Any idea ?
thanks for pointing this out !
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:49 EDT