LibWeb: Add methods to Document that must do nothing

This change adds the `clear()`, `captureEvents()` and `releaseEvents()`
methods to the document object. These methods are obsolete, but are
still included in the HTML specification, which says they must do
nothing.
This commit is contained in:
Tim Ledbetter 2024-04-14 07:25:49 +01:00 committed by Andreas Kling
commit 0564e06f10
Notes: sideshowbarker 2024-07-18 05:37:06 +09:00
5 changed files with 38 additions and 0 deletions

View file

@ -243,6 +243,10 @@ public:
JS::NonnullGCPtr<HTMLCollection> scripts();
JS::NonnullGCPtr<HTML::HTMLAllCollection> all();
void clear();
void capture_events();
void release_events();
String const& source() const { return m_source; }
void set_source(String source) { m_source = move(source); }