You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seems to only match an element if it's the same element as document.activeElement and has the property autofocus. If this is true, why? For context, some code I'm testing that uses .match(':focus-visible') matches in the browser, but fails to match in JSDOM unless I add autofocus to the element. I don't think this property is part of the general heuristics that browsers use to determine a match on this selector.
The text was updated successfully, but these errors were encountered:
I'm trying my best to follow the source code, but the logic for the
:focus-visible
selector:nwsapi/src/nwsapi.js
Lines 1098 to 1103 in 088475f
seems to only match an element if it's the same element as
document.activeElement
and has the propertyautofocus
. If this is true, why? For context, some code I'm testing that uses.match(':focus-visible')
matches in the browser, but fails to match in JSDOM unless I addautofocus
to the element. I don't think this property is part of the general heuristics that browsers use to determine a match on this selector.The text was updated successfully, but these errors were encountered: