Bug 165617 - Custom Elements from a different document are not customized when created with innerHTML
Summary: Custom Elements from a different document are not customized when created wit...
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
Depends on:
Blocks: 154907
  Show dependency treegraph
Reported: 2016-12-08 12:28 PST by Keanu Lee
Modified: 2016-12-09 09:55 PST (History)
7 users (show)

See Also:

Fixes the bug (9.91 KB, patch)
2016-12-08 21:22 PST, Ryosuke Niwa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.