Closed Bug 822627 Opened 11 years ago Closed 11 years ago

keygen injects shadow dom element into innerHTML output

Categories

(Core :: DOM: Core & HTML, defect)

17 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 101019

People

(Reporter: glennjonesnet, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11

Steps to reproduce:

Created document containing  

<keygen name="name" challenge="challenge string" keytype="type" keyparams="pqg-params"> 

Then using JavaScript called body.innerHTML. 

Tests at http://codebits.glennjones.net/textextraction/innerhtml.html


Actual results:

As part of the return text it injected the HTML

<select name="name" challenge="challenge string" keytype="type" keyparams="pqg-params"><option>High Grade</option><option>Medium Grade</option></select>

Instead of the the keygen tag. Something similiar also happen with body.textContent where text inside the options tags is add to the output.


Expected results:

Should I not get back 

<keygen name="name" challenge="challenge string" keytype="type" keyparams="pqg-params">
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.