[Webkit-unassigned] [Bug 26147] New: No support of DOM events on an XML document
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 2 13:36:31 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=26147
Summary: No support of DOM events on an XML document
Product: WebKit
Version: 525.x (Safari 3.2)
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Major
Priority: P2
Component: XML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: laurent at xulfr.org
In a document loaded with DOMParser, events are not propagated.
This example doesn't work (no alert) in Safari (3.2 and 4beta) and in Chrome 2:
var thatDoc = '<?xml version="1.0" encoding="UTF-8"?>\
<root>\
<foo>bar</foo>\
</root>';
var parser = new DOMParser();
var doc = parser.parseFromString(thatDoc, 'text/xml');
doc.addEventListener("click", function(evt){ alert('ok');}, true);
var evt = doc.createEvent("Event");
evt.initEvent( "click", true, true );
doc.getElementsByTagName("foo")[0].dispatchEvent(evt);
It works in Gecko and Opera.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list