When you use
document.getElementById("text").innerHTML = "abc a d";
They load this document (pretty formatted by me):
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css"></style>
</head>
<body>
<p id="text">Hello</p>
<script>
try {
document.getElementById("text").innerHTML = "abc a d";
} catch (error) {
throw error;
}
//# sourceURL=wecinoqeje.js
</script>
</body>
</html>
But when you use do
, they completely screw up your code.
document.getElementById("text").innerHTML = "abc a do";
They probably think it's a do-while
, because they have something called "loop protection". The loaded document is
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css"></style>
</head>
<body>
<p id="text">Hello</p>
<script>
try {
{
;
window.runnerWindow.protect.protect({
line: 1,
reset: true
});
document.getElementById("text")
{
if (window.runnerWindow.protect.protect({ line: 1 }))
break;
.innerHTML = "abc a do";
}
}
} catch (error) {
throw error;
}
//# sourceURL=wecinoqeje.js
</script>
</body>
</html>
That's a syntax error. So your code does not run.