HTML_CodeSniffer
HTML_CodeSniffer copied to clipboard
Uncaught TypeError: Cannot read property 'querySelector' of undefined on applet markup
if applet exists, code sniffer crashes.
elakApplet = domConstruct.create("applet");
elakApplet.innerHTML = "<PARAM name=\"separate_jvm\" value=\"false\">";
elakApplet.innerHTML += "<PARAM name='channelId' value='"+channelId+"'>";
elakApplet.id = "applet";
elakApplet.codebase = "";
elakApplet.code = "applet.class";
elakApplet.archive = "applet.jar";
In my tests I was able to get this to occur using the minified bookmarklet code. Running the code that caused this error manually in the browser console doesn't result in the same error so it may be a side effect of minification.