Closed
Bug 1456837
Opened 8 years ago
Closed 8 years ago
document.activeElement redirects to DocumentOrShadowRoot.activeElement
Categories
(Developer Documentation Graveyard :: API: DOM, enhancement, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: electromikenetic, Unassigned)
References
()
Details
:: Developer Documentation Request
Request Type: Correction
Gecko Version: unspecified
Technical Contact:
:: Details
If you search for "activeElement" (https://developer.mozilla.org/en-US/search?q=activeElement) the first result is for document.activeElement. Clicking on this link instead brings you to the page for DocumentOrShadowRoot.activeElement.
The information is more or less the same, but is misleading since ShadowRoot is newer and given the "experimental" status, whereas document.activeElement is a well supported and stable property.
Updated•8 years ago
|
Priority: -- → P2
Comment 1•8 years ago
|
||
@electronmikenetic -- So, this is actually correct in that DocumentOrShadowRoot is a mixin implemented by both Document and ShadowRoot. However, the page text is terribly unclear on that, so I've now rewritten the introduction substantially to make it clearer.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 2•8 years ago
|
||
Thanks, it looks a lot clearer now!
My main concern was that because the Shadow DOM isn't widely supported yet, it appeared as though there wasn't good support for document.activeElement. Caniuse gives a clear answer though.
| Reporter | ||
Updated•8 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•