Compile raw inline event handlers lazily. Resolves #8489.

This commit is contained in:
Josh Matthews 2015-11-12 11:20:08 -05:00 committed by Ms2ger
parent 3703e6d4f6
commit 2796a4dfa8
11 changed files with 323 additions and 67 deletions

View file

@ -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",

View file

@ -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>