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∈';
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.