webcomponents / webcomponents/polyfills
[ShadyDOM] Allow use of `noPatch` modes without re-ordering polyfills
- Dominant language
- HTML
- Stars
- 1.2k
- Forks
- 168
- PR merge metrics
- No merged PRs in 30d
Description
Currently the `noPatch` modes for `ShadyDOM` require loading the custom elements polyfill before the shadydom polyfill. However, the webcomponents bundles do not do this so as it's not the order required when the polyfill is not in this mode. Therefore users must manually configure the polyfills to run in `noPatch` mode, which is pretty cumbersome.
Instead, the polyfills should be able to be loaded in the standard order. In order to facilitate this, the custom elements polyfill will need to patch the shadydom prefixed methods used in `noPatch` mode.
This should help with user setup for cases like https://github.com/webcomponents/polyfills/issues/215.
Work is on this is ongoing in https://github.com/webcomponents/polyfills/tree/shady-noPatch-layering.
Contributor guide
Assessment
This issue has not been assessed yet.