Can not add nodes to DOM (with JavaScript) generated via XSLT




11 years ago
11 years ago


(Reporter: Susanne.Klemm, Unassigned)


Firefox Tracking Flags

(Not tracked)




11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20080404 Firefox/
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20080404 Firefox/

I have an XML document with an attached XSLT which creates xhtml. In the XHTML file there is a JavaScript file assigned which tries to add a node to a div. Adding text nodes or changing attributes do work.

If I save the generated XHTML in a file and open this file in Firefox, the Script works fine. So I think there is a problem with changing the dom of a genereated document with XSLT.

Reproducible: Always

Steps to Reproduce:
1. Create any XML file and attach an XSLT file which creates an XHTML file with JavaScript content
2. The JavaScript content should query a node (e.g. div, getById)
3. Try to add a node (appendChild)
Actual Results:  
Added node is not displayed and not accessible for further JavaScript access.

Expected Results:  
Node should be displayed an be accessible.

IE works fine with the example. Safari has this problem too.

Comment 1

11 years ago
I retried my example and now it works fine. Shame on me!
Last Resolved: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.