[
Constructor,
ConstructorCallWith=Document,
ImplementationLacksVTable,
ExportMacro=WEBCORE_EXPORT,
] interface Range {
readonly attribute Node startContainer;
readonly attribute long startOffset; readonly attribute Node endContainer;
readonly attribute long endOffset; readonly attribute boolean collapsed;
readonly attribute Node commonAncestorContainer;
[MayThrowException] void setStart(Node node, unsigned long offset);
[MayThrowException] void setEnd(Node node, unsigned long offset);
[MayThrowException] void setStartBefore(Node node);
[MayThrowException] void setStartAfter(Node node);
[MayThrowException] void setEndBefore(Node node);
[MayThrowException] void setEndAfter(Node node);
void collapse(optional boolean toStart = false);
[MayThrowException] void selectNode(Node node);
[MayThrowException] void selectNodeContents(Node node);
const unsigned short START_TO_START = 0;
const unsigned short START_TO_END = 1;
const unsigned short END_TO_END = 2;
const unsigned short END_TO_START = 3;
[MayThrowException, ImplementedAs=compareBoundaryPointsForBindings] short compareBoundaryPoints(unsigned short how, Range sourceRange);
[CEReactions, MayThrowException] void deleteContents();
[CEReactions, MayThrowException, NewObject] DocumentFragment extractContents();
[CEReactions, MayThrowException, NewObject] DocumentFragment cloneContents();
[CEReactions, MayThrowException] void insertNode(Node node);
[CEReactions, MayThrowException] void surroundContents(Node newParent);
[NewObject] Range cloneRange();
void detach();
[MayThrowException] boolean isPointInRange(Node node, unsigned long offset);
[MayThrowException] short comparePoint(Node node, unsigned long offset);
[MayThrowException] boolean intersectsNode(Node node);
stringifier;
DOMRectList getClientRects();
[NewObject] DOMRect getBoundingClientRect();
[CEReactions, MayThrowException, NewObject] DocumentFragment createContextualFragment(DOMString fragment);
[MayThrowException] void expand(optional DOMString unit = "");
[MayThrowException] short compareNode(Node node);
const unsigned short NODE_BEFORE = 0;
const unsigned short NODE_AFTER = 1;
const unsigned short NODE_BEFORE_AND_AFTER = 2;
const unsigned short NODE_INSIDE = 3;
};