Re: JS entity problem

Neil <[email protected]>
Newsgroups gmane.comp.mozilla.devel.java
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Rojek Piotr wrote:

>    var displayDiv = document.getElementById('displayDiv');
>    displayDiv.innerHTML = 'dfdsfdsfdsf&isin;';

Apparently the problem here is that the innerHTML function isn't able to 
obtain the original parser used to construct the document. In the case 
of an HTML document this isn't a problem, because there is only one HTML 
parser, but in the case of an XHTML document the function only obtains 
an XML parser rather than an XHTML parser, and is therefore unable to 
convert the XHTML entity references. You could search Bugzilla and file 
a bug if one hasn't been filed already but I doubt that anyone will try 
to fix it.

-- 
Warning: May contain traces of nuts.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.