mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Previously, when getting element shadow root, we are using [GetShadowRoot](https://dom.spec.whatwg.org/#dom-element-shadowroot). This is a getter which only allows javascript to access shadow root with `open` mode. In [webdriver spec](https://www.w3.org/TR/webdriver2/#dfn-get-element-shadow-root), particularly step 5, it seems that they imply for us to get the shadow root without going through the above getter. P.S. Other browser seems to also allows getting closed shadow root, like Chromium here: https://chromium-review.googlesource.com/c/chromium/src/+/5923865. Testing: Covered in webdriver WPT test that access closed shadow root. Signed-off-by: PotatoCP <kenzieradityatirtarahardja18@gmail.com> |
||
---|---|---|
.. | ||
dromaeo | ||
html | ||
jquery | ||
power | ||
unit | ||
wpt |