-
Notifications
You must be signed in to change notification settings - Fork 170
Closed
Description
Description
querySelector
and friends require polyfills for features like :scope
or :has()
in older browsers.
These polyfills break when also including @webcomponents/shadydom/shadydom.min.js
.
Not sure why as I am not familiar with the code base here.
Could be because an unpolyfilled querySelector
is memoized or because it is overwritten without wrapping and extending. the original
Example
include :
- https://github.com/jonathantneal/element-qsa-scope
- @webcomponents/shadydom/shadydom.min.js
run someElement.querySelector(':scope')
This will not return the expected result.
Expected behavior
Expected ShadyDOM to leave querySelector
as is or correctly wrap it.
Actual behavior
ShadyDOM breaks querySelector
polyfills.
Version
"@webcomponents/shadydom": "^1.9.0"
Browsers affected
- Chrome
- Firefox
- Edge
- Safari
- IE 11
Metadata
Metadata
Assignees
Type
Projects
Status
✅ Done