Closed
Bug 295449
Opened 20 years ago
Closed 20 years ago
importNode doesnt work in XUL Applications
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mezger.michael, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
I tested a a few hours now, and didnt find any solution for this problem. When i
try to import a node from a different DOMDocument and append it to the current
DOMDocument, it fails without an error.
The same code snippet work in html files without any problems.
When i create the Node in the same Document, it works fine.
Reproducible: Always
Steps to Reproduce:
1. create a xul document with a box container specified by a id
2. run following javascript code snippet:
var xml = '<label>testlabel</label>';
var dom = (new DOMParser()).parseFromString(xml, "text/xml");
alert(dom.documentElement.nodeName);
var vbox = document.getElementById("content");
importedNode = document.importNode(dom.documentElement, true);
vbox.appendChild(dom.documentElement);
Actual Results:
no results
Expected Results:
add '<label>testlabel</label>' to the box. In the browser should displayed
"testlabel"
Comment 1•20 years ago
|
||
<label> needs to be in the XUL namespace if you want it to be a XUL element.
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
•