Bug 165617

Summary: Custom Elements from a different document are not customized when created with innerHTML
Product: WebKit Reporter: Keanu Lee <webkit>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Severity: Normal CC: cdumez, commit-queue, esprehn+autocc, gyuyoung.kim, koivisto, rniwa, webkit-bug-importer
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 154907    
Description Flags
Fixes the bug none

Description Keanu Lee 2016-12-08 12:28:49 PST
If you create a custom element in a different document (e.g. `doc = document.implementation.createHTMLDocument()`) by setting `innerHTML` on a container element in that document, then try to `appendChild` the container element to the current document, the custom element is not customized. Note that it is customized if the custom element was created using `doc.createElement()` instead.

Comment 1 Ryosuke Niwa 2016-12-08 21:22:50 PST
Created attachment 296635 [details]
Fixes the bug
Comment 2 WebKit Commit Bot 2016-12-09 09:55:26 PST
Comment on attachment 296635 [details]
Fixes the bug

Clearing flags on attachment: 296635

Committed r209610: <http://trac.webkit.org/changeset/209610>
Comment 3 WebKit Commit Bot 2016-12-09 09:55:31 PST
All reviewed patches have been landed.  Closing bug.