Skip to content

Commit 2a2ed3e

Browse files
committed
using data instead of nodeValue
1 parent 74046e3 commit 2a2ed3e

9 files changed

Lines changed: 13 additions & 13 deletions

File tree

async.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cjs/handlers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const handleAnything = comment => {
4646
oldValue = newValue;
4747
if (!text)
4848
text = document.createTextNode('');
49-
text.nodeValue = newValue;
49+
text.data = newValue;
5050
nodes = diff(comment, nodes, [text]);
5151
}
5252
break;

cjs/rabbit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const mapTemplate = (type, template) => {
7575
if (node.nodeType === 8) {
7676
// The only comments to be considered are those
7777
// which content is exactly the same as the searched one.
78-
if (node.nodeValue === search) {
78+
if (node.data === search) {
7979
nodes.push({type: 'node', path: createPath(node)});
8080
search = `${prefix}${++i}`;
8181
}

0 commit comments

Comments
 (0)