Created
January 7, 2016 01:42
-
-
Save ojanvafai/871737f8f2aaf35eb0e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Constructor, | |
Exposed=Window] | |
interface Range { | |
readonly attribute Node startContainer; | |
readonly attribute unsigned long startOffset; | |
readonly attribute Node endContainer; | |
readonly attribute unsigned long endOffset; | |
readonly attribute boolean collapsed; | |
readonly attribute Node commonAncestorContainer; | |
void setStart(Node node, unsigned long offset); | |
void setEnd(Node node, unsigned long offset); | |
void setStartBefore(Node node); | |
void setStartAfter(Node node); | |
void setEndBefore(Node node); | |
void setEndAfter(Node node); | |
void collapse(optional boolean toStart = false); | |
void selectNode(Node node); | |
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; | |
short compareBoundaryPoints(unsigned short how, Range sourceRange); | |
void deleteContents(); | |
[NewObject] DocumentFragment extractContents(); | |
[NewObject] DocumentFragment cloneContents(); | |
void insertNode(Node node); | |
void surroundContents(Node newParent); | |
[NewObject] Range cloneRange(); | |
void detach(); // Specced as a noop. | |
boolean isPointInRange(Node node, unsigned long offset); | |
short comparePoint(Node node, unsigned long offset); | |
boolean intersectsNode(Node node); | |
stringifier; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment