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:
Andreas Kling
2021-02-21 21:24:11 +01:00
parent 7f66a4e3ba
commit 15cfde7233
Notes: sideshowbarker 2024-07-18 22:02:07 +09:00
2 changed files with 4 additions and 0 deletions

View File

@@ -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);