polyfills
polyfills copied to clipboard
MutationObserver shadow-dom show NotFoundError in IE11
Description
See the example.
Example
<script src="https://gw.alipayobjects.com/os/lib/webcomponents/webcomponentsjs/2.6.0/webcomponents-bundle.js"></script>
<div id="shadowHost"></div>
<script>
shadowHost.attachShadow({mode:'open'}).innerHTML = '<div></div>';
(new MutationObserver(function (mutationsList) {
console.info('mutated');
})).observe(shadowHost.shadowRoot, { childList: true });
shadowHost.shadowRoot.appendChild(document.createElement('div'));
</script>
Steps to reproduce
see the example
Expected behavior
No Error
Actual behavior
NotFoundError
Version
@webcomponents/[email protected]
Browsers affected
- [ ] Chrome
- [ ] Firefox
- [ ] Edge
- [ ] Safari
- [x] IE 11

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.