Closed
Bug 675061
Opened 13 years ago
Closed 13 years ago
HTML entities in Javascript with application/xhtml+xml
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 445166
People
(Reporter: martin, Unassigned)
Details
User Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.9.168 Version/11.50 Steps to reproduce: I can't use HTML entities in Javascript when using the application/xhtml+xml Content-Type. According to the XHTML specs: http://www.w3.org/TR/2002/REC-xhtml1-20020801/#h-A2 "The XHTML entity sets are the same as for HTML 4, but have been modified to be valid XML 1.0 entity declarations. Note the entity for the Euro currency sign (€ or € or €) is defined as part of the special characters." As I understand this, HTML should work. They *do* actually work in the document, but not in Javascript. I created a small test page: http://arp242.net/entity-test/ Actual results: Javascript will give an error: [00:24:50.735] uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: "http://arp242.net/entity-test/javascript.js Line: 11"] Expected results: As I understand it, it should work as with text/html
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Updated•13 years ago
|
Status: RESOLVED → VERIFIED
Component: General → DOM: Core & HTML
Product: Firefox → Core
QA Contact: general → general
Version: 5 Branch → Trunk
You need to log in
before you can comment on or make changes to this bug.
Description
•