Hi there,
Try the following js code:
doc = document.implementation.createDocument("", "root", null);
doc.addEventListener("DOMNodeInserted", function(event) {
alert("changed!");
}, false);
doc.documentElement.appendChild(doc.createElement("test"));
This should show a dialog, however it does not do anything in Webkit-based
browsers (tried Chrome Dev and current Safari on Mac). Works for Firefox and
Opera.
Using the HTML document *does* work:
document.addEventListener("DOMNodeInserted", function(event) {
alert("changed!");
}, false);
document.body.appendChild(document.createElement("button"));
Is this a bug or do I miss something?
Best,
Lucas
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help