Re: [xml] Another buglet in HTML parser

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Oct 11 1999 - 04:19:59 EDT


  Hi Kristian,

> Here's some more feedback on the HTML parser: when parsing the
> following
>
> <html>
>
> <body>
> <ol>
> <li> hello
> </ol></body>
>
> </html>

  Hum, strange, I'm unable to reproduce this problem.

> I get "htmlParseEndTag: unexpected close for tag OL </ol></body>".
> I've traced it to htmlParseContent: the test for wether current
> element has been autoclosed (line 2184: if (currentNode != ctxt->name)
> ...) should be moved to after the four cases dealing with the element
> content.

  IMHO, the current code is right, the test for the end of this
element parsing is (rightly) done after the element content has
been parsed when one reenter the loop. This should not change anything.

> In the example above, parsing the li element autocloses the ol

  Huh ? It should not ... Did you change something which makes LI
autoclose OL, if yes that's an error, and this explains why the parser
later on complains about an OL not being open ...

Daniel

-- 
	    [Yes, I have moved back to France !]
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


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:49 EDT