containsNode method
Determines if the given node is included in the selection.
Syntax
var retval = HTMLSelection.containsNode(node, allowPartialContainment);Parameters
- node
-
Type: Node
- allowPartialContainment
-
Type: Boolean
Standards information
Remarks
If allowPartialContainment is set to true, this method will return true if at least one of the node's (first and/or last) boundary points is within the range of the selection (or visually equivalent to that).
See also
Show: