HTML_CodeSniffer icon indicating copy to clipboard operation
HTML_CodeSniffer copied to clipboard

Uncaught TypeError: Cannot read property 'querySelector' of undefined on applet markup

Open matejlednar opened this issue 8 years ago • 1 comments

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";

matejlednar avatar Jun 02 '17 20:06 matejlednar

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.

is deprecated as far as I am aware but I don't think it's related to the issue here so I will investigate further.

ironikart avatar Jun 19 '17 23:06 ironikart