mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Cargoify servo
This commit is contained in:
parent
db2f642c32
commit
c6ab60dbfc
1761 changed files with 8423 additions and 2294 deletions
23
tests/content/test_event_handler_syntax_error.html
Normal file
23
tests/content/test_event_handler_syntax_error.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta charset="UTF-8">
|
||||
<script src="harness.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<a id="a" onclick="{">link</a>
|
||||
<script>
|
||||
var a = document.getElementById("a");
|
||||
is(a.onclick, null, "invalid onclick attribute");
|
||||
|
||||
document.body.setAttribute("onx", "{");
|
||||
document.body.setAttribute("ony", "}");
|
||||
|
||||
is(document.body.getAttribute("onx"), "{");
|
||||
is(document.body.getAttribute("ony"), "}");
|
||||
|
||||
finish();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue