Closed
Bug 986913
Opened 11 years ago
Closed 11 years ago
setAttributeNS results in wrong outerHTML
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: t.motylewski, Assigned: longsonr)
References
Details
Attachments
(1 file)
(deleted),
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
Steps to reproduce:
Using Firefox 28 on Ubuntu 13.10.
after adding attribute to the element the "outerHTML" returns invalid html
You can reproduce it with JS.
HTML:
<span id="spanid">Lorem Ipsum </span>
JS
var element = document.getElementById('spanid');
console.log(element.outerHTML);
element.setAttributeNS('ext', 'qtip', 'attributeValue');
console.log(element.outerHTML);
Actual results:
the first console.log returns:
<span id="spanid">Lorem Ipsum</span>
and it is correct
The second call returns
<spanqtip="attributeValue" id="spanid">Lorem Ipsum</span>
^^ notice missing space between span and qtip.
Expected results:
Attribute should be visible, and there should be space between span and atribute name.
Because of this bug I had some selenium tests failing on Firefox and working in chrome.
Reporter | ||
Updated•11 years ago
|
Summary: setAttributeNS result sin wrong outerHTML → setAttributeNS results in wrong outerHTML
Assignee | ||
Comment 1•11 years ago
|
||
Assignee: nobody → longsonr
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #8395463 -
Flags: review?(bugs)
Updated•11 years ago
|
Attachment #8395463 -
Flags: review?(bugs) → review+
Updated•11 years ago
|
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Assignee | ||
Comment 2•11 years ago
|
||
Assignee | ||
Comment 3•11 years ago
|
||
Flags: in-testsuite+
Comment 4•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in
before you can comment on or make changes to this bug.
Description
•