Closed
Bug 286193
Opened 20 years ago
Closed 20 years ago
bad attributes nodeList if attribute's value has quotation mark(\").
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: turnleft21, Unassigned)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ko-KR; rv:1.7.5) Gecko/20041111 Firefox/1.0 I am using HTMLElement.attributes attribute to write outerHTML function. if an element's attribute value has \", node List of that element is broken. let's see detailed example. below is html code. html code : <p id="test" onclick="alert(\"bingo\")">test</p> I've checked the dom of above p element in dom inspector. node List : nodeName nodeValue ) bingo onclick alert(\ id if works properly, node List should be: node List : nodeName nodeValue onclick alert(\"bingo\") id I tested in firefox 1.0 and mozilla 1.8 beta. Reproducible: Always
Comment 1•20 years ago
|
||
The correct way to escape quotation marks in HTML is to use ", \" just closes the attribute value after the \.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•