domQuery

Type: Object

How to get domQuery?

JavaScript

import domQuery from 'fontoxml-dom-utils/src/domQuery.js'

DomQuery provides convenience methods to traverse the XML DOM. These can be used, but XPaths are more powerful and usually more readable.

In contexts where a Blueprint is available, always use blueprintQuery instead of domQuery to ensure the correct state of the DOM is used. Whenever possible, use XPath instead of either of these to avoid this distinction.

Properties

compareNodePositions

compareOffsetPositions

comparePositions

contains

Type: contains

findAllAncestors

findChild

Type: findChild

findChildren

findClosestAncestor

findCommonAncestor

findDescendant

findDescendants

findNextInDocumentOrder

findNextSiblings

findPreviousSiblings

findTopMostNodes

getContainerLength

getDocumentNode

getTextContent

isInDocument