Bug 190204
| Summary: | slotchange event is not fired when upgrading connected custom element | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tomek <tomalecpub> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | cdumez, rniwa |
| Priority: | P2 | ||
| Version: | Safari 11 | ||
| Hardware: | Unspecified | ||
| OS: | macOS 10.13 | ||
Tomek
## Live sample
https://jsbin.com/xibohon/3/edit?html,console,output
## Steps to reproduce
1. create custom element with a child: `<my-element><div></div></my-element>`
2. define this custom element:
- on constructor create shadow root, with default slot,
- attach `slotchange` event listener
3. observe `slotchange` callback execution.
## Expected result
`slotchange` callback is called after `connectedCallback`
This is how it works in Chrome 69.0.3497.100 and Firefox 63.
## Expected result
`slotchange` callback is not called
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ryosuke Niwa
Thanks for the bug report. This issue should be fixed in Safari Technology Preview 66. Please try it out at: https://webkit.org/downloads/
*** This bug has been marked as a duplicate of bug 189144 ***