(
root: Node,
characterDataOnly = false
)
| 1659 | * @return The created NodeIterator |
| 1660 | */ |
| 1661 | const _createNodeIterator = function ( |
| 1662 | root: Node, |
| 1663 | characterDataOnly = false |
| 1664 | ): NodeIterator { |
| 1665 | const doc = getOwnerDocument ? getOwnerDocument(root) : root.ownerDocument; |
| 1666 | return createNodeIterator.call( |
| 1667 | doc || root, |
| 1668 | root, |
| 1669 | // eslint-disable-next-line no-bitwise |
| 1670 | (characterDataOnly ? 0 : NodeFilter.SHOW_ELEMENT) | |
| 1671 | NodeFilter.SHOW_COMMENT | |
| 1672 | NodeFilter.SHOW_TEXT | |
| 1673 | NodeFilter.SHOW_PROCESSING_INSTRUCTION | |
| 1674 | NodeFilter.SHOW_CDATA_SECTION, |
| 1675 | null |
| 1676 | ); |
| 1677 | }; |
| 1678 | |
| 1679 | /** |
| 1680 | * Replace template expression syntax (mustache, ERB, template |
no outgoing calls
no test coverage detected