mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
Update web-platform-tests to revision 314de955a5102650136404f6439f22f8d838e0f4
This commit is contained in:
parent
521748c01e
commit
6b4094e2a4
133 changed files with 1609 additions and 628 deletions
|
@ -1,36 +1,35 @@
|
|||
// http://w3c.github.io/selection-api/#selection-interface
|
||||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the Selection API spec.
|
||||
// See https://w3c.github.io/selection-api/
|
||||
|
||||
interface Selection {
|
||||
readonly attribute Node? anchorNode;
|
||||
readonly attribute Node? anchorNode;
|
||||
readonly attribute unsigned long anchorOffset;
|
||||
readonly attribute Node? focusNode;
|
||||
readonly attribute Node? focusNode;
|
||||
readonly attribute unsigned long focusOffset;
|
||||
readonly attribute boolean isCollapsed;
|
||||
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);
|
||||
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);
|
||||
void deleteFromDocument();
|
||||
boolean containsNode(Node node, optional boolean allowPartialContainment = false);
|
||||
stringifier DOMString ();
|
||||
};
|
||||
|
||||
partial interface Document {
|
||||
Selection? getSelection();
|
||||
Selection ? getSelection();
|
||||
};
|
||||
|
||||
partial interface Window {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue