Closed
Bug 608327
Opened 14 years ago
Closed 5 years ago
innerHTML getter canonicalizes "href" and "src" attributes inappropriately
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(1 file)
1.15 KB,
text/html
|
Details |
The innerHTML getter incorrectly turns <math href="javascript:void 0"></math> into <math href="javascript:void%200"></math>
Updated•14 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Comment 1•14 years ago
|
||
To which console?
Comment 2•14 years ago
|
||
Ah, it uses dump
Comment 3•14 years ago
|
||
We seem to do this quite on purpose. In nsHTMLContentSerializer::SerializeHTMLAttributes we have: nsAutoString tempURI(valueStr); if (!isJS && NS_FAILED(EscapeURI(aContent, tempURI, valueStr))) valueStr = tempURI; for href and src attributes. This seems to have been done for bug 74137, but it's not clear to me whether we want it anymore.... Oh, and isJS is false because we only treat href/src that are javascript: on HTML/XUL/SVG nodes as isJS, and this is a MathML node.
Comment 4•8 years ago
|
||
I can't reproduce this issue anymore on today's nightly (the test passes). Can you confirm?
Flags: needinfo?(jruderman)
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
Comment 5•5 years ago
|
||
I also can not reproduce this bug.
Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(jruderman)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•