Skip to content

Commit 16f8b80

Browse files
author
iacore
committed
use .data instead of .textContent
DOM is complex.
1 parent 439d0fe commit 16f8b80

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cjs/interface/document-fragment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class DocumentFragment extends NonElementParentNode {
1616
let {[NEXT]: next, [END]: end} = this;
1717
while (next !== end) {
1818
if (next.nodeType === TEXT_NODE)
19-
text.push(next.textContent);
19+
text.push(next.data);
2020
next = next[NEXT];
2121
}
2222
return text.join('');

esm/interface/document-fragment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class DocumentFragment extends NonElementParentNode {
1515
let {[NEXT]: next, [END]: end} = this;
1616
while (next !== end) {
1717
if (next.nodeType === TEXT_NODE)
18-
text.push(next.textContent);
18+
text.push(next.data);
1919
next = next[NEXT];
2020
}
2121
return text.join('');

worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7174,7 +7174,7 @@ let DocumentFragment$1 = class DocumentFragment extends NonElementParentNode {
71747174
let {[NEXT]: next, [END]: end} = this;
71757175
while (next !== end) {
71767176
if (next.nodeType === TEXT_NODE)
7177-
text.push(next.textContent);
7177+
text.push(next.data);
71787178
next = next[NEXT];
71797179
}
71807180
return text.join('');

0 commit comments

Comments
 (0)