Bug 71126

Summary: Shadow DOM throws WRONG_DOCUMENT_ERR
Product: WebKit Reporter: Ojan Vafai <ojan>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: abarth, dglazkov, dominicc, eae, rniwa, tasak, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 97279    

Ojan Vafai
Reported 2011-10-28 11:37:51 PDT
We are killing WRONG_DOCUMENT_ERR across the web platform. The only places WebKit still fires this event are in DOM Ranges and in shadow DOM's validation after http://trac.webkit.org/changeset/90026. The correct thing to do if the shadowRoot's document is different than the one it's being set to is to do the adoptNode. See ContainerNode::insertBefore for an example. I believe it's the setTreeScopeRecursively call that does it.
Attachments
Ryosuke Niwa
Comment 1 2019-10-04 22:32:20 PDT
We don't do this anymore.
Radar WebKit Bug Importer
Comment 2 2019-10-04 22:33:14 PDT
Note You need to log in before you can comment on or make changes to this bug.