[Webkit-unassigned] [Bug 122755] New: DOM event does not bubble in off-DOM element
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 14 08:50:13 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=122755
Summary: DOM event does not bubble in off-DOM element
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Event Handling
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: paul+bugs at paulmillr.com
DOM events don't bubble in off-DOM elements.
Here's the code:
```
var log = function(event) {console.log('Clicked on div', event);};
// Create DOM element.
var div = document.createElement('div');
// Don't append it to DOM. Though it works if we append it there.
// document.body.appendChild(div);
div.innerHTML = '<a id="outer"><span class="inner">yo</span></a>';
// Does not work.
div.addEventListener('click', log);
div.querySelector('#outer').click();
```
off-DOM event does not bubble up. Works fine in Firefox.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list