polyfills icon indicating copy to clipboard operation
polyfills copied to clipboard

MutationObserver shadow-dom show NotFoundError in IE11

Open zhoukekestar opened this issue 3 years ago • 2 comments

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

zhoukekestar avatar Apr 12 '22 08:04 zhoukekestar

image

zhoukekestar avatar Apr 12 '22 08:04 zhoukekestar

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.

stale[bot] avatar Jun 18 '23 02:06 stale[bot]