mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:27:35 +00:00
LibWeb: Stub Document.queryCommandSupported
This commit is contained in:
parent
d6cfc735ae
commit
6b0152e150
3 changed files with 10 additions and 0 deletions
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -98,6 +98,7 @@ interface Document : Node {
|
|||
|
||||
attribute DOMString title;
|
||||
|
||||
boolean queryCommandSupported(DOMString commandId);
|
||||
readonly boolean hidden;
|
||||
readonly DOMString visibilityState;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue