1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 09:47:34 +00:00

LibWeb: Stub out all the functions from the execCommand spec

Per the specification, it's ok if we say that nothing is supported.

It's not ok if we say something is supported but do nothing, apparently.
This commit is contained in:
Andrew Kaster 2024-02-15 16:47:29 -07:00 committed by Tim Flynn
parent f5266e0096
commit 5d2a36f244
5 changed files with 91 additions and 10 deletions

View file

@ -106,7 +106,6 @@ interface Document : Node {
[CEReactions] attribute DOMString title;
boolean queryCommandSupported(DOMString commandId);
readonly attribute boolean hidden;
readonly attribute DOMString visibilityState;
@ -124,6 +123,14 @@ interface Document : Node {
Element? elementFromPoint(double x, double y);
sequence<Element> elementsFromPoint(double x, double y);
readonly attribute Element? scrollingElement;
// https://w3c.github.io/editing/docs/execCommand/
[CEReactions] boolean execCommand(DOMString commandId, optional boolean showUI = false, optional DOMString value = "");
boolean queryCommandEnabled(DOMString commandId);
boolean queryCommandIndeterm(DOMString commandId);
boolean queryCommandState(DOMString commandId);
boolean queryCommandSupported(DOMString commandId);
DOMString queryCommandValue(DOMString commandId);
};
dictionary ElementCreationOptions {