WebKit Bugzilla
Attachment 348515 Details for
Bug 189164
: Document.p.contains returns true for nodes in shadow tree
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Document contains test case
doc-contains-sd.js (text/html), 269 bytes, created by
Justin Ridgewell
on 2018-08-30 11:18:04 PDT
(
hide
)
Description:
Document contains test case
Filename:
MIME Type:
Creator:
Justin Ridgewell
Created:
2018-08-30 11:18:04 PDT
Size:
269 bytes
patch
obsolete
>var div = document.querySelector('div'); >var sd = div.attachShadow({ mode: 'open' }); >sd.appendChild(document.createElement('span')); > >if (document.contains(sd.firstChild)) { > document.body.innerHTML = '<h1 style="color: red">Doc contains node in shadow tree</h1>'; >}
var div = document.querySelector('div'); var sd = div.attachShadow({ mode: 'open' }); sd.appendChild(document.createElement('span')); if (document.contains(sd.firstChild)) { document.body.innerHTML = '<h1 style="color: red">Doc contains node in shadow tree</h1>'; }
View Attachment As Raw
Actions:
View
Attachments on
bug 189164
: 348515 |
409929