mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Add Internals.getShadowRoot(element)
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.
This commit is contained in:
parent
59162342e6
commit
1402c143a9
Notes:
github-actions[bot]
2025-08-07 20:17:29 +00:00
Author: https://github.com/awesomekling
Commit: 1402c143a9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5767
5 changed files with 22 additions and 0 deletions
|
|
@ -54,4 +54,8 @@ interface Internals {
|
|||
readonly attribute boolean headless;
|
||||
|
||||
DOMString dumpDisplayList();
|
||||
|
||||
// Returns the shadow root of the element, if it has one, even if it's not normally accessible to JS.
|
||||
ShadowRoot? getShadowRoot(Element element);
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue