Re: [xml] Bug in parser (HTML)

Date view Thread view Subject view Author view

From: Wayne Davison (wayned@users.sourceforge.net)
Date: Fri Oct 27 2000 - 18:18:16 EDT


On Fri, 27 Oct 2000, Daniel Veillard wrote:
> this generate a character() SAX callback instead of
> ignorableWhitespace() ... [...]
> One can consider libxml broken there but I really do think

I don't see how that follows. Any whitespace inside a paragraph-like
container is significant, with the possible exception of leading and
trailing whitespace (which occurs at paragraph boundaries). So,
whitespace inside of <p>, <h1>, <td>, etc. is all significant, but
whitespace directly inside something like <table> or <body> is not.

So, your "that ain't true for <b>" example confused me (but maybe I'm
missing something). Are you saying that these are somehow different?

<html><body><p>
<b>bbbbbbbbbbbb</b>
<b>cccccccccccc</b>
</p></body></html>

and

<html><body><p>
<b>bbbbbbbbbbbb</b> <b>cccccccccccc</b>
</p></body></html>

..wayne..

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Oct 27 2000 - 18:43:31 EDT