|
Re: Re: Some more information (was: [BUG] in HTMLScriptElementImpl.setText(: msg#00036java.enhydra.xmlc
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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Some more information (was: [BUG] in HTMLScriptElementImpl.setText()), Mark van Leeuwen |
|---|---|
| Next by Date: | xmlc 2.2 alpha 4, David Li |
| Previous by Thread: | Re: Some more information (was: [BUG] in HTMLScriptElementImpl.setText()), Mark van Leeuwen |
| Next by Thread: | xmlc 2.2 alpha 4, David Li |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |