mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:07:35 +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:
parent
f5266e0096
commit
5d2a36f244
5 changed files with 91 additions and 10 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue