Bug 190204 - slotchange event is not fired when upgrading connected custom element
Summary: slotchange event is not fired when upgrading connected custom element
Status: RESOLVED DUPLICATE of bug 189144
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari 11
Hardware: Unspecified macOS 10.13
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-02 09:21 PDT by Tomek
Modified: 2018-10-04 14:41 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomek 2018-10-02 09:21:19 PDT
## 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
Comment 1 Ryosuke Niwa 2018-10-04 14:41:12 PDT
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 ***