diff options
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); |