src/edit/dompos.js
// Get a descendant node at a path relative to an ancestor node.
Get a descendant node at a path relative to an ancestor node.
Get a descendant node at a path relative to an ancestor node .
function pathToDOM(parent, path) {
  let node = parent
  for (let i = 0; i < path.length; i++) {
    node = findByPath(node, path[i])
    if (!node) AssertionError.raise("Failed to resolve path " + path.join("/"))
  }
  return node
}
function pathToDOM ( parent , path ) { let node = parent for ( let i = 0 ; i < path . length ; i ++ ) { node = findByPath ( node , path [ i ] ) if ( ! node ) AssertionError . raise ( "Failed to resolve path " + path . join ( "/" ) ) } return node }
Get a descendant node at a path relative to an ancestor node.
Get a descendant node at a path relative to an ancestor node .