Bug 157928 - attachShadow doesn't respect the whitelist on elements
Summary: attachShadow doesn't respect the whitelist on elements
Status: RESOLVED DUPLICATE of bug 157706
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-19 16:05 PDT by Elliott Sprehn
Modified: 2016-05-20 02:02 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 Elliott Sprehn 2016-05-19 16:05:53 PDT
per spec only a whitelist of elements are allowed to have a shadow attached, WebKit allows it for anything that doesn't have a UA shadow like <body> though.

Spec:
http://w3c.github.io/webcomponents/spec/shadow/#widl-Element-attachShadow-ShadowRoot-ShadowRootInit-shadowRootInitDict

Code:
http://trac.webkit.org/browser/trunk/Source/WebCore/dom/Element.cpp#L1686
Comment 1 Ryosuke Niwa 2016-05-20 02:02:44 PDT

*** This bug has been marked as a duplicate of bug 157706 ***