polyfills
polyfills copied to clipboard
Web Components Polyfills
This issue was previously tracked in https://github.com/webcomponents/custom-elements/issues/73, but got closed when the repo was archived after the polyfill moved here.
gecko 48 dispatch a event named 'focus'. but intercept by the polyfill. any suggest?
### Description Mutation Observer callback is not called when elements are added or removed from shadow host. ```html shadowHost.attachShadow({mode:'open'}).innerHTML = ``; var hostObserverCalled = false; (new MutationObserver((mutationsList)=>{ console.info('mutated'); hostObserverCalled =...
### Description When using `Node.prototype.replaceChild` with the same node as ref_node, the node gets cleaned. (eg. removed from its parent) ### Example https://jsbin.com/qajapuxupa/1/edit?html,console,output ### Steps to reproduce 1. Create a...
We should be able to cache the exportsparts tree, maybe directly on each node, so that we don't need to walk the same exporting part ancestor more than once.
Need to ShadyDOM.wrap where appropriate.
See https://github.com/webcomponents/polyfills/pull/329/files#r430699466 The most important reason to do this could be users who don't want to pay the byte cost of additional shadow parts support.
The static parts of a template could be discovered once per template in `prepareTemplateDom`, which could give us a performance improvement. Would still need to account for dynamic DOM insertions,...
Investigate whether/how an optional build step could be used to improve performance of shadow parts support in shady css.