mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Expose the Window object as Document.defaultView
This should really be a WindowProxy? but since we don't have anything representing that concept yet, let's just expose the Window object directly so document.defaultView.foo works. :^)
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 22:02:07 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/15cfde7233f
@@ -9,6 +9,8 @@ interface Document : Node {
|
||||
readonly attribute DOMString inputEncoding;
|
||||
readonly attribute DOMString contentType;
|
||||
|
||||
readonly attribute Window? defaultView;
|
||||
|
||||
Element? getElementById(DOMString id);
|
||||
ArrayFromVector getElementsByName(DOMString name);
|
||||
ArrayFromVector getElementsByTagName(DOMString tagName);
|
||||
|
||||
Reference in New Issue
Block a user