webcomponents / webcomponents/polyfills

[ShadyDOM] Allow use of `noPatch` modes without re-ordering polyfills

Open
#237 2 comments 5 reactions 0 assignees View on GitHub
Focus Area: Standards & Polyfills Package: shadydom Type: Bug wontfix
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.