Bug 188752

Summary: slotchange event does not fire with initial content
Product: WebKit Reporter: Jan Miksovsky <jan>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: cdumez, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 11   
Hardware: Mac   
OS: macOS 10.13   
Bug Depends on:    
Bug Blocks: 148695    

Jan Miksovsky
Reported 2018-08-20 11:44:48 PDT
See http://jsbin.com/wirubeq/edit?html,console,output. In Chrome/Firefox, when a component with light DOM content is attached to the document, and a slot is created with a slotchange listener, the slot will raise an initial slotchange event. Safari does not do this. The Chrome/Firefox behavior is useful because it allows a component to concentrate its initial content processing in a slotchange handler. To get consistent behavior, we have to normalize the slotchange behavior across browsers, which is cumbersome.
Attachments
Radar WebKit Bug Importer
Comment 1 2018-08-20 21:11:29 PDT
Ryosuke Niwa
Comment 2 2018-08-27 21:22:28 PDT
This is a duplicate of webkit.org/b/169718. *** This bug has been marked as a duplicate of bug 169718 ***
Note You need to log in before you can comment on or make changes to this bug.