1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:27:35 +00:00

LibWeb: Stub Document.queryCommandSupported

This commit is contained in:
Luke Wilde 2022-11-05 14:48:57 +00:00 committed by Andreas Kling
parent d6cfc735ae
commit 6b0152e150
3 changed files with 10 additions and 0 deletions

View file

@ -2280,6 +2280,13 @@ void Document::did_stop_being_active_document_in_browsing_context(Badge<HTML::Br
tear_down_layout_tree();
}
// https://w3c.github.io/editing/docs/execCommand/#querycommandsupported()
bool Document::query_command_supported(String const& command) const
{
dbgln("(STUBBED) Document::query_command_supported(command='{}')", command);
return false;
}
// https://html.spec.whatwg.org/multipage/scripting.html#appropriate-template-contents-owner-document
JS::NonnullGCPtr<DOM::Document> Document::appropriate_template_contents_owner_document()
{

View file

@ -443,6 +443,8 @@ public:
void did_stop_being_active_document_in_browsing_context(Badge<HTML::BrowsingContext>);
bool query_command_supported(String const&) const;
protected:
virtual void visit_edges(Cell::Visitor&) override;

View file

@ -98,6 +98,7 @@ interface Document : Node {
attribute DOMString title;
boolean queryCommandSupported(DOMString commandId);
readonly boolean hidden;
readonly DOMString visibilityState;