mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 08:18:55 +00:00
LibWeb: Implement document.open(string, string, string)
This commit is contained in:
parent
a63c7549e1
commit
43c5b94ea6
Notes:
sideshowbarker
2024-07-17 04:26:22 +09:00
Author: https://github.com/IdanHo
Commit: 43c5b94ea6
Pull-request: https://github.com/SerenityOS/serenity/pull/16072
Reviewed-by: https://github.com/linusg ✅
Reviewed-by: https://github.com/trflynn89
3 changed files with 14 additions and 2 deletions
|
@ -33,6 +33,7 @@
|
|||
#include <LibWeb/HTML/Scripting/Environments.h>
|
||||
#include <LibWeb/HTML/VisibilityState.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
#include <LibWeb/HTML/WindowProxy.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
@ -295,6 +296,7 @@ public:
|
|||
WebIDL::ExceptionOr<void> writeln(Vector<String> const& strings);
|
||||
|
||||
WebIDL::ExceptionOr<Document*> open(String const& = "", String const& = "");
|
||||
WebIDL::ExceptionOr<JS::GCPtr<HTML::WindowProxy>> open(String const& url, String const& name, String const& features);
|
||||
WebIDL::ExceptionOr<void> close();
|
||||
|
||||
HTML::Window* default_view() { return m_window.ptr(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue