Bug 157928

Summary: attachShadow doesn't respect the whitelist on elements
Product: WebKit Reporter: Elliott Sprehn <esprehn>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: cdumez, rniwa
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Elliott Sprehn
Reported 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
Attachments
Ryosuke Niwa
Comment 1 2016-05-20 02:02:44 PDT
*** This bug has been marked as a duplicate of bug 157706 ***
Note You need to log in before you can comment on or make changes to this bug.