From aa5de551af98b913f91440244f95f0a9c7dfed1c Mon Sep 17 00:00:00 2001 From: Slava Leleka Date: Fri, 11 Oct 2024 14:11:09 +0300 Subject: [PATCH 1/2] src/helpers/node-text-utils.ts edited online with Bitbucket --- src/helpers/node-text-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/node-text-utils.ts b/src/helpers/node-text-utils.ts index faf0e6a5..600ce957 100644 --- a/src/helpers/node-text-utils.ts +++ b/src/helpers/node-text-utils.ts @@ -22,7 +22,7 @@ export const handleExistingNodes = ( * If the selector is '#text', it will filter and handle text nodes. * Otherwise, it will handle elements that match the provided selector. * - * @param {ParentNode} parent - The parent element in which to search for nodes. + * @param parent - The parent element in which to search for nodes. */ const processNodes = (parent: ParentNode) => { // If the selector is '#text', filter and handle text nodes. From a06b6e30ba52b91ed854fe1158fdee6176da0bda Mon Sep 17 00:00:00 2001 From: Slava Leleka Date: Fri, 11 Oct 2024 14:11:23 +0300 Subject: [PATCH 2/2] tests/scriptlets/remove-node-text.test.js edited online with Bitbucket --- tests/scriptlets/remove-node-text.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/scriptlets/remove-node-text.test.js b/tests/scriptlets/remove-node-text.test.js index 4ac1be82..ea9919ec 100644 --- a/tests/scriptlets/remove-node-text.test.js +++ b/tests/scriptlets/remove-node-text.test.js @@ -135,6 +135,7 @@ test('case with parent selector option and #text node', (assert) => { appendChildren(document.body, parentElement, textNode); assert.strictEqual(textNode.nodeValue, text, 'Text node should contain correct text'); + assert.strictEqual(textNode.secondTextNode, text, 'Second text node should contain correct text'); runScriptlet(name, ['#text', 'content!', 'body']);