logo       

Re: Re: Some more information (was: [BUG] in HTMLScriptElementImpl.setText(: msg#00036

java.enhydra.xmlc

Subject: Re: Re: Some more information (was: [BUG] in HTMLScriptElementImpl.setText())

On Friday 07 March 2003 11:54, Mark van Leeuwen wrote:
> Hi all,
>
> I've tracked down the bug, guess it was on my side, however with a
> strange behaviour of DefaultDomWriter:

[ ... snip ...]

> OK, the line with <img> tag was intentionnaly indented this way. My
> problem occured because of the trailing slash in the tag. If I remove
> it, it seems fine (must test it on all of my pages). I've looked in
> the w3c specs, and can't find that trailing slash are forbidden in
> HTML pages (of course they are mendatory in xhtml). So is it Tidy's
> fault not warning me it is forbidden with the doctype I gave (or gave
> not), or where does it all go wrong?

You're right, it's Tidy's fault - Tidy is really great for parsing HTML, and
it does a reasonable job on parsing stuff that looks a bit like HTML but
isn't (i.e. most of what is out there in the wild :-) but sometimes it
mangles incorrect HTML in the attempt to parse it. Seems like you've been hit
by this.

As to where <img /> is allowed in HTML or not - I'm not sure what the specs
say, but a number of browsers and parsers don't like empty tags that are
closed with "/>".

--
Richard Kunze

[ t]ivano Software, Bahnhofstr. 18, 63263 Neu-Isenburg
Tel.: +49 6102 80 99 07 - 0, Fax.: +49 6102 80 99 07 - 1
http://www.tivano.de, kunze@xxxxxxxxx

Attachment: pgpic3otvRAy4.pgp
Description: signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise