diff --git a/source/node/Node.ts b/source/node/Node.ts index b126f10..0a0b175 100644 --- a/source/node/Node.ts +++ b/source/node/Node.ts @@ -116,8 +116,8 @@ const getLength = (node: Node): number => { return node instanceof Element || node instanceof DocumentFragment ? node.childNodes.length : node instanceof CharacterData - ? node.length - : 0; + ? node.length + : 0; }; // --- Manipulation diff --git a/source/node/TreeIterator.ts b/source/node/TreeIterator.ts index 37c2550..b6c095c 100644 --- a/source/node/TreeIterator.ts +++ b/source/node/TreeIterator.ts @@ -24,8 +24,8 @@ class TreeIterator { nodeType === Node.ELEMENT_NODE ? SHOW_ELEMENT : nodeType === Node.TEXT_NODE - ? SHOW_TEXT - : 0; + ? SHOW_TEXT + : 0; return !!(nodeFilterType & this.nodeType) && this.filter(node as T); }