We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5fe7f0 commit b3f91c1Copy full SHA for b3f91c1
src/content-scope-features.js
@@ -8,7 +8,8 @@ import platformFeatures from 'ddg:platformFeatures'
8
function shouldRun () {
9
// don't inject into non-HTML documents (such as XML documents)
10
// but do inject into XHTML documents
11
- if (document instanceof Document === false && (
+ // Should check HTMLDocument as Document is an alias for XMLDocument also.
12
+ if (document instanceof HTMLDocument === false && (
13
document instanceof XMLDocument === false ||
14
document.createElement('div') instanceof HTMLDivElement === false
15
)) {
0 commit comments