diff --git a/src/js/epicker-ui.js b/src/js/epicker-ui.js index 295974d9f..d0924881c 100644 --- a/src/js/epicker-ui.js +++ b/src/js/epicker-ui.js @@ -150,7 +150,6 @@ const candidateFromFilterChoice = function(filterChoice) { return filter; } - // TODO: Maybe add another step to remove attribute values? const specificity = [ 0b0000, // remove hierarchy; remove id, nth-of-type, attribute values 0b0010, // remove hierarchy; remove id, nth-of-type diff --git a/src/js/scriptlets/epicker.js b/src/js/scriptlets/epicker.js index b32488faa..188cfe854 100644 --- a/src/js/scriptlets/epicker.js +++ b/src/js/scriptlets/epicker.js @@ -898,7 +898,7 @@ const zapElementAtPoint = function(mx, my, options) { elem = elementFromPoint(mx, my); } - if ( elem instanceof HTMLElement === false ) { return; } + if ( elem instanceof Element === false ) { return; } const getStyleValue = function(elem, prop) { const style = window.getComputedStyle(elem);