mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02: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.
10 lines
207 B
HTML
10 lines
207 B
HTML
<!doctype html>
|
|
<script src="../include.js"></script>
|
|
<input id="myInput">
|
|
<script>
|
|
test(() => {
|
|
println(myInput.shadowRoot);
|
|
println(internals.getShadowRoot(myInput));
|
|
});
|
|
</script>
|