diff options
author | Alex Yatskov <FooSoft@users.noreply.github.com> | 2019-09-16 18:31:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-16 18:31:26 -0700 |
commit | ae696c32eb572b3824cadcf3ab8852725c793191 (patch) | |
tree | 1aa9ec57f82d228cae69e018be3e6c14ba7a56f7 /ext/fg/js/document.js | |
parent | 58778612778df944628b4697dc51caccbeb22f79 (diff) | |
parent | 073420a121a0b615989e4b240ca910e7f10d84f3 (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/document.js')
-rw-r--r-- | ext/fg/js/document.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/document.js b/ext/fg/js/document.js index 079a5034..9afc44f0 100644 --- a/ext/fg/js/document.js +++ b/ext/fg/js/document.js @@ -105,7 +105,7 @@ function docRangeFromPoint(x, y, options) { let imposterContainer = null; if (elements.length > 0) { const element = elements[0]; - switch (element.nodeName) { + switch (element.nodeName.toUpperCase()) { case 'IMG': case 'BUTTON': return new TextSourceElement(element); |