aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/source.js
diff options
context:
space:
mode:
authorAlex Yatskov <FooSoft@users.noreply.github.com>2019-09-16 18:31:26 -0700
committerGitHub <noreply@github.com>2019-09-16 18:31:26 -0700
commitae696c32eb572b3824cadcf3ab8852725c793191 (patch)
tree1aa9ec57f82d228cae69e018be3e6c14ba7a56f7 /ext/fg/js/source.js
parent58778612778df944628b4697dc51caccbeb22f79 (diff)
parent073420a121a0b615989e4b240ca910e7f10d84f3 (diff)
Merge pull request #216 from toasted-nutbread/normalize-xhtml-node-names
Normalize XHTML document node.nodeNode to upper case
Diffstat (limited to 'ext/fg/js/source.js')
-rw-r--r--ext/fg/js/source.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/source.js b/ext/fg/js/source.js
index 18a1a976..4642de50 100644
--- a/ext/fg/js/source.js
+++ b/ext/fg/js/source.js
@@ -88,7 +88,7 @@ class TextSourceRange {
}
const skip = ['RT', 'SCRIPT', 'STYLE'];
- if (skip.includes(node.nodeName)) {
+ if (skip.includes(node.nodeName.toUpperCase())) {
return false;
}
@@ -285,7 +285,7 @@ class TextSourceElement {
}
setEndOffset(length) {
- switch (this.element.nodeName) {
+ switch (this.element.nodeName.toUpperCase()) {
case 'BUTTON':
this.content = this.element.innerHTML;
break;