mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibWeb/HTML: Bring HTMLDialogElement up to spec
I missed when these changes actually happened, but the big differences here are that a few steps got extracted into their own algorithms; and the dialog now only does things when it's attached to a fully-active document, instead of immediately. I've imported a WPT test that exercises this by calling show() on an unattached dialog.
This commit is contained in:
Notes:
github-actions[bot]
2025-12-04 14:48:20 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/58b32814e0b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6990
@@ -56,8 +56,13 @@ private:
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
virtual void inserted() override;
|
||||
virtual void attribute_changed(FlyString const& local_name, Optional<String> const& old_value, Optional<String> const& value, Optional<FlyString> const& namespace_) override;
|
||||
|
||||
void queue_a_dialog_toggle_event_task(String old_state, String new_state, GC::Ptr<DOM::Element> source);
|
||||
|
||||
void run_dialog_setup_steps();
|
||||
void run_dialog_cleanup_steps();
|
||||
void run_dialog_focusing_steps();
|
||||
|
||||
void set_close_watcher();
|
||||
|
||||
Reference in New Issue
Block a user