jalangi2 icon indicating copy to clipboard operation
jalangi2 copied to clipboard

instrumentation of html files containing onclick="return false;" throws SyntaxError exception

Open ksen007 opened this issue 9 years ago • 2 comments

src/js/commands/instrument.js on an html file containing the following tag < a href="//slashdot.org/my/login" onclick="show_login_box(); return false;"> throws SyntaxError exception.

ksen007 avatar Apr 23 '15 07:04 ksen007

can't reproduce. have a full html file?

msridhar avatar Apr 23 '15 22:04 msridhar

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<a href="#"  onclick="return false;">Hello</a>


</body>
</html>

If you run the following on this file, you will see a SyntaxError exception.

node src/js/commands/esnstrument_cli.js --inlineIID --inlineSource tests/unit/returnFalse.html

ksen007 avatar Apr 24 '15 20:04 ksen007