polyfills
polyfills copied to clipboard
Web Components Polyfills
This adds polyfills for newer pieces of the DOMTokenList APIs: multi-parameter `add` and `remove`, `toggle`'s `force` parameter, and `replace`. This was originally part of #391, but I've split it out...
**Description** If you nest custom elements and attach them to a node via innerHTML the custom elements are not constructed anymore (works with webcomponents 1.0.14) **Live Demo** https://github.com/mzeiher/webcomponentjs-bug git clone...
### Description Error thrown when calling insertBefore on a slot #### Live Demo https://jsfiddle.net/michael_england/uqvrcnks/ #### Steps to Reproduce 1. Create `my-element` with the following: ``` customElements.define('my-element', class extends HTMLElement {...
### Description Selectors of the form: ``` :host(:dir(rtl)) ``` are transformed to, e.g., ``` :host([dir="rtl"]) ``` But, as MDN puts it: > Be aware that the behavior of the :dir()...
### Description `:host([foo], [bar])` is incorrectly transformed to `x-foo[foo], [bar]` ### Example https://jsbin.com/qakadiloge/edit?html,output ### Steps to reproduce 1. Load example #### Expected behavior Text correctly says what color it is...
### Description see title ### Example ```html Document ``` ```html // console.log("hello"); ``` ### Steps to reproduce see example #### Expected behavior console output is ``` hello ``` #### Actual...
### Description Seeing some JS behaviour changes due to inclusion of web components (this is the 2nd such thing - this one is easier to see...) #### Live Demo https://archive.org/~tracey/test/pollyfail2.htm...
Source code can be found [here](https://github.com/Kartik1607/ShdayDomEdgeBug) **Issue** : Without Shady DOM, the application works correctly. After including Shady DOM in index file, angular no longer destroys components when route changes.
https://github.com/webcomponents/custom-elements/pull/101 could not be merged cleanly, pushed to polyfills repo as "ce-ShadowRoot-innerHTML"