Open Bug 637257 Opened 13 years ago Updated 2 years ago

" " emitted by CGI in "application/xhtml+xml" returned as " " when using innerHTML

Categories

(Firefox :: General, defect)

3.6 Branch
x86_64
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: trd, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3

I have a CGI.  It emits a page.  The content-type is "application/xhtml+xml".  Part of what is emitted is a link.  The CGI (written in C) contains as part of its string " ".  This is the numeric equivelent of   - it's just that   is not valid in xhtml+xml.

When page contains some javascript, which uses innerHTML to obtain the text of the link.  That text on retrival however has the " " returned as " ".  This is a problem, because I use that text (along with a bit more text from elsewhere) to generate the text for another link!  of course, when I try to write that link into the page, FF barfs, rejecting " " as an invalid entity for xhtml+xml.

What I'll try now is scanning the innerHTML text and doing a replace on the nbsp back to 160.


Reproducible: Always
Man, I write rubbish sometimes.

Third sentence, first paragraph is; "The CGI (written in C) contains as part of
its string " "."

I mean to say "The link contains as part of its string " ".
Version: unspecified → 3.6 Branch
Can you try submitting a test case (with the .xhtml extension). I am not finding this now.
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.