Re: Bugs in bugzilla

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

Received on Tuesday, 23 September 2003 15:12:37 UTC