18 lines
331 B
HTML
18 lines
331 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
Test passes if it does not crash.
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
|
|
function errorHandler() {
|
|
document.body.setAttribute("onclick", "var x=;");
|
|
}
|
|
|
|
window.onerror = errorHandler;
|
|
document.body.setAttribute("onclick", "var x=;");
|
|
document.body.onclick;
|
|
</script>
|
|
</html>
|