Closed
Bug 126288
Opened 23 years ago
Closed 23 years ago
XHTML elements added through DOM are ignored.
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 111514
People
(Reporter: kelson, Assigned: jst)
Details
Attachments
(2 files)
Using document.createElement(), document.createTextNode(), and appendChild() to add elements to an HTML document works fine, but when added to an XHTML document served as text/xml or application/xhtml+xml, the text is simply appended to the previous element and the new elements are ignored. Using the DOM inspector, however, shows the new elements in the correct places. I'll attach a test case simplified from a browser detection page which should illustrate the problem. I've seen this for a while several months, but originally thought that I was just using the functions incorrectly (I changed the application to serve text/html by default and pushed it to the back burner), but now that I've gone back and looked at it with the DOM inspector I'm no longer certain. It still occurs in build 2002021708 on Win2k and 0.9.8 on Linux.
Only difference from previous attachment (aside from content type) is <![CDATA[ ... ]]> replaced with <!-- --> in <script>...</script> block.
Comment 3•23 years ago
|
||
confirming bug
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Assignee | ||
Updated•23 years ago
|
Priority: P3 → --
Assignee | ||
Comment 4•23 years ago
|
||
In the |application/xhtml+xml| case |document| is an XML document, so createElement('a') will simply create an XML element named 'a'. This is all due to bug 111514.
Assignee | ||
Comment 5•23 years ago
|
||
*** This bug has been marked as a duplicate of 111514 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in
before you can comment on or make changes to this bug.
Description
•