Re: [xml] HTMLparser again



On Tue, Oct 25, 2005 at 01:04:19PM +1000, Michael Day wrote:

Hi,

HTMLparser removes space between elements in some situations like this:

    <p><img src="foo"> <img src="bar"></p>

so that the output will be like this:

    <p><img src="foo"><img src="bar"></p>

However, this does not seem to be correct; at least it is not the way that
web browsers parse this kind of HTML. (If <span> elements are used instead
of <img> elements then HTMLparser correctly preserves the space).

  handling of spaces is on a case by case basis, it depends on the 
containing element. yes it is surprizing it gets removed there within a <p>
I would suggest to bugzilla it too.

  thanks,

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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