webcomponents / webcomponents/polyfills

MutationObserver shadow-dom show NotFoundError in IE11

Open
#504 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
1.2k
Forks
168
PR merge metrics
No merged PRs in 30d

Description

### Description

See the example.

### Example

```html

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'));

```

### Steps to reproduce

see the example

#### Expected behavior

No Error

#### Actual behavior

`NotFoundError`

### Version

@webcomponents/webcomponentsjs@2.6.0

### Browsers affected

- [ ] Chrome
- [ ] Firefox
- [ ] Edge
- [ ] Safari
- [x] IE 11

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.