Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: include.preload.js

Issue 6316561677680640: Issue 673 - Check whether it is an HTML document before manipulating the DOM (Closed)
Patch Set: Created June 17, 2014, 9:55 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include.preload.js
===================================================================
--- a/include.preload.js
+++ b/include.preload.js
@@ -216,7 +216,7 @@
ext.backgroundPage.sendMessage({type: "get-selectors"}, setElemhideCSSRules);
}
-if (document.documentElement instanceof HTMLElement)
+if (document instanceof HTMLDocument)
{
checkExceptionKey();
init(document);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld