mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Address review changes
Signed-off-by: Yu Wei Wu <yuweiwu@YunoMacBook-Air.local>
This commit is contained in:
parent
5b60310a69
commit
1f7db4a306
1 changed files with 3 additions and 2 deletions
|
@ -824,7 +824,9 @@ impl HTMLScriptElement {
|
|||
// Step 31. If el has a src content attribute, then:
|
||||
|
||||
// Step 31.1. If el's type is "importmap".
|
||||
if let ScriptType::ImportMap = script_type {
|
||||
if script_type == ScriptType::ImportMap {
|
||||
// then queue an element task on the DOM manipulation task source
|
||||
// given el to fire an event named error at el, and return.
|
||||
self.queue_error_event();
|
||||
return;
|
||||
}
|
||||
|
@ -1068,7 +1070,6 @@ impl HTMLScriptElement {
|
|||
},
|
||||
ScriptType::Module => {
|
||||
document.set_current_script(None);
|
||||
assert!(document.GetCurrentScript().is_none());
|
||||
self.run_a_module_script(&script, false, can_gc);
|
||||
},
|
||||
ScriptType::ImportMap => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue