[Webkit-unassigned] [Bug 86707] New: document.activeElement should not return an element not in the document tree
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 16 22:54:41 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=86707
Summary: document.activeElement should not return an element
not in the document tree
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: tkent at chromium.org
Created an attachment (id=142417)
--> (https://bugs.webkit.org/attachment.cgi?id=142417&action=review)
repro
document.activeElement returns an element not in the document tree if a new focused element is detached during blur/focusout/domfocusout event.
<!DOCTYPE html>
<script>
document.addEventListener("DOMFocusOut", function() {
document.body.removeChild(document.getElementById('holder'));
}, false);
setTimeout(function() {
document.getElementById('console').innerText = 'activeElement should not be an HTMLInputElement: ' + document.activeElement;
}, 100);
</script>
<div id=console></div>
<div id=holder>
<input autofocus>
<input autofocus>
</div>
--
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