Results 21 - 33 of 33

Range.startOffset

The Range.startOffset read-only property returns a number representing where in the startContainer the Range starts.
API DOM Property Range

Range.surroundContents()

The Range.surroundContents() method moves content of the Range into a new node, placing the new node at the start of the specified range.
API DOM Method Range

Range.toString()

The Range.toString() method is a stringifier returning the text of the Range.
API DOM Method Range Stringifier

Range.intersectsNode()

The Range.intersectsNode() method returns a boolean indicating whether the given Node intersects the Range.
API DOM Experimental Expérimental Method Range

Range.collapsed

The Range.collapsed read-only property returns a Boolean flag indicating whether the start and end points of the Range are at the same position. It returns true if the start and end boundary points of the Range are the same point in the DOM, false if not.
API DOM DOM Reference Property Range Reference Référence

Range.createContextualFragment()

The Range.createContextualFragment() method returns a DocumentFragment by invoking the HTML fragment parsing algorithm or the XML fragment parsing algorithm with the start of the range (the parent of the selected node) as the context node. The HTML fragment parsing algorithm is used if the range belongs to a Document whose HTMLness bit is set. In the HTML case, if the context node would be html, for historical reasons the fragment parsing algorithm is invoked with body as the context instead.
API DOM DOM Reference Method Range Reference Référence