mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Compile raw inline event handlers lazily. Resolves #8489.
This commit is contained in:
parent
3703e6d4f6
commit
2796a4dfa8
11 changed files with 323 additions and 67 deletions
|
@ -5874,6 +5874,12 @@
|
|||
"url": "/_mozilla/mozilla/img_width_height.html"
|
||||
}
|
||||
],
|
||||
"mozilla/inline-event-listener-panic.html": [
|
||||
{
|
||||
"path": "mozilla/inline-event-listener-panic.html",
|
||||
"url": "/_mozilla/mozilla/inline-event-listener-panic.html"
|
||||
}
|
||||
],
|
||||
"mozilla/inline_event_handler.html": [
|
||||
{
|
||||
"path": "mozilla/inline_event_handler.html",
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>Getting the value of an inline event handler shouldn't panic.</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<body>
|
||||
<script>
|
||||
var e = document.body;
|
||||
e.setAttribute("onclick", "console.log('x')");
|
||||
assert_not_equals(e.onclick, null);
|
||||
assert_not_equals(e.onclick, null);
|
||||
done();
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue