mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-25 09:30:01 +00:00
This lets you access closed shadow roots from JavaScript, even though they're not normally accessible to JavaScript. This can be used to poke into UA shadow roots in tests.
9 lines
207 B
HTML
9 lines
207 B
HTML
<!doctype html>
|
|
<script src="../include.js"></script>
|
|
<input id="myInput">
|
|
<script>
|
|
test(() => {
|
|
println(myInput.shadowRoot);
|
|
println(internals.getShadowRoot(myInput));
|
|
});
|
|
</script>
|