Add method declarations to collapse and select nodes in the HTML Range

See:
https://dom.spec.whatwg.org/#range
This commit is contained in:
iska
2016-11-21 01:24:26 +01:00
parent c57117670f
commit 14289f96e5
+24
View File
@@ -105,4 +105,28 @@
*/
- (void)setEndAfterNode:(HTMLNode *)node;
/**
Collapses this range to its start.
*/
- (void)collapseToStart;
/**
Collapses this range to its end.
*/
- (void)collapseToEnd;
/**
Selects the given node in the range.
@param node The node to select
*/
- (void)selectNode:(HTMLNode *)node;
/**
Selects the node's contents in the range.
@param node The node to select the contents.
*/
- (void)selectNodeContents:(HTMLNode *)node;
@end