Don't fire a load event on inline scripts

https://github.com/whatwg/html/issues/1757
This commit is contained in:
Anthony Ramine 2017-01-13 13:33:05 +01:00
parent e6736d067c
commit 3e19b37c83
3 changed files with 0 additions and 12 deletions

View file

@ -528,8 +528,6 @@ impl HTMLScriptElement {
// Step 8.
if script.external {
self.dispatch_load_event();
} else {
window.dom_manipulation_task_source().queue_simple_event(self.upcast(), atom!("load"), &window);
}
}

View file

@ -1,5 +0,0 @@
[load-event.html]
type: testharness
[load events should not be fired for inline scripts]
expected: FAIL

View file

@ -1,5 +0,0 @@
[019.html]
type: testharness
[ scheduler: DOM added scripts and event handling ]
expected: FAIL