mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 05:08:36 +02:00
Automatic update from web-platform-tests Update interfaces/selection-api.idl (#17182) Source: https://github.com/tidoust/reffy-reports/blob/e0ad95c/whatwg/idl/selection-api.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/541575219 -- wp5At-commits: 488f0f02d28b33060a091e3961e6849abe97bc4c wpt-pr: 17182
44 lines
1.5 KiB
Text
44 lines
1.5 KiB
Text
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content was automatically extracted by Reffy into reffy-reports
|
|
// (https://github.com/tidoust/reffy-reports)
|
|
// Source: Selection API (https://w3c.github.io/selection-api/)
|
|
|
|
[Exposed=Window]
|
|
interface Selection {
|
|
readonly attribute Node? anchorNode;
|
|
readonly attribute unsigned long anchorOffset;
|
|
readonly attribute Node? focusNode;
|
|
readonly attribute unsigned long focusOffset;
|
|
readonly attribute boolean isCollapsed;
|
|
readonly attribute unsigned long rangeCount;
|
|
readonly attribute DOMString type;
|
|
Range getRangeAt(unsigned long index);
|
|
void addRange(Range range);
|
|
void removeRange(Range range);
|
|
void removeAllRanges();
|
|
void empty();
|
|
void collapse(Node? node, optional unsigned long offset = 0);
|
|
void setPosition(Node? node, optional unsigned long offset = 0);
|
|
void collapseToStart();
|
|
void collapseToEnd();
|
|
void extend(Node node, optional unsigned long offset = 0);
|
|
void setBaseAndExtent(Node anchorNode, unsigned long anchorOffset, Node focusNode, unsigned long focusOffset);
|
|
void selectAllChildren(Node node);
|
|
[CEReactions]
|
|
void deleteFromDocument();
|
|
boolean containsNode(Node node, optional boolean allowPartialContainment = false);
|
|
stringifier DOMString ();
|
|
};
|
|
|
|
partial interface Document {
|
|
Selection? getSelection();
|
|
};
|
|
|
|
partial interface Window {
|
|
Selection? getSelection();
|
|
};
|
|
|
|
partial interface mixin GlobalEventHandlers {
|
|
attribute EventHandler onselectstart;
|
|
attribute EventHandler onselectionchange;
|
|
};
|