Re: Bugs in bugzilla

Philippe Le Hegaret <[email protected]> 23 Sep 2003 12:11:38 -0700
Newsgroups gmane.comp.web.dom.test-suites.general
Organization World Wide Web Consortium
Message-ID <1064344298.428.42.camel@chacal>
On Mon, 2003-09-22 at 22:18, Curt Arnold wrote:
> The third bug, http://www.w3.org/Bugs/Public/show_bug.cgi?id=261, 
> involved hc_nodeinsertbefore.xml which was a transliteration of the 
> XML-specific test nodeinsertnode.xml.  The setup of the test depended on 
> the preservation of the whitespace between the p and em elements in the 
> following fragment:
> 
>  <p>
>   <em>EMP0002</em>
> 
> XML processors and Mozilla's HTML implementation would preserve the 
> whitespace node, Konqueror and IE would eliminate the whitespace node.

>From an XML point of view, Mozilla's XHTML implementation is correct.
HTML does handle whitespaces differently though. Konqueror and IE might
use their HTML parser to load the XHTML. It might be a media type issue
actually: if the XHTML document is parsed as "application/xhtml+xml"
then the implementation must follow the rules of XML. If the document is
parsed as "text/html", then HTML must followed. If the document is
loaded from the disk, it does not have a media type, so Mozilla,
Konqueror and IE are not wrong. 

Philippe