Bug 157928
Summary: | attachShadow doesn't respect the whitelist on elements | ||
---|---|---|---|
Product: | WebKit | Reporter: | Elliott Sprehn <esprehn> |
Component: | DOM | Assignee: | Ryosuke Niwa <rniwa> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | cdumez, rniwa |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Elliott Sprehn
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ryosuke Niwa
*** This bug has been marked as a duplicate of bug 157706 ***