mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
LibWeb: Stub out HTMLDialogElement APIs
This makes https://null.com/ load instead of throwing a React internal error and showing a black background.
This commit is contained in:
@@ -17,6 +17,13 @@ class HTMLDialogElement final : public HTMLElement {
|
||||
public:
|
||||
virtual ~HTMLDialogElement() override;
|
||||
|
||||
String return_value() const;
|
||||
void set_return_value(String);
|
||||
|
||||
void show();
|
||||
void show_modal();
|
||||
void close(Optional<String> return_value);
|
||||
|
||||
// https://www.w3.org/TR/html-aria/#el-dialog
|
||||
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::dialog; }
|
||||
|
||||
@@ -24,6 +31,8 @@ private:
|
||||
HTMLDialogElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
||||
String m_return_value;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user