Fragment
A fragment represents a node's collection of child nodes.
Like nodes, fragments are persistent data structures, and you should not mutate them or their content. Rather, you create new instances whenever needed. The API tries to make this easy.
§Properties
§Methods
Find the first position, searching from the end, at which this
fragment and the given fragment differ, or null
if they are
the same. Since this position will not be the same in both
nodes, an object with two separate positions is returned.
Find the index and inner offset corresponding to a given relative position in this fragment. The result object will be reused (overwritten) the next time the function is called. (Not public.)
Invoke a callback for all descendant nodes between the given two
positions (relative to start of this fragment). Doesn't descend
into a node when the callback returns false
.