Skip to content

Commit 05320fb

Browse files
committed
Helper getElementsContainingText trim john-doherty#50
1 parent e2bf651 commit 05320fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: runtime/helpers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = {
6060
var elements = document.querySelectorAll(query);
6161

6262
for (var i = 0, l = elements.length; i < l; i++) {
63-
if (elements[i][txtProp] === content) {
63+
if (elements[i][txtProp].trim() === content.trim()) {
6464
results.push(elements[i]);
6565
}
6666
}

0 commit comments

Comments
 (0)