mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Resolve step 31
Signed-off-by: Yu Wei Wu <yuweiwu@YunoMacBook-Air.local>
This commit is contained in:
parent
3d41e26d7d
commit
5b60310a69
1 changed files with 9 additions and 3 deletions
|
@ -823,7 +823,11 @@ impl HTMLScriptElement {
|
||||||
if let Some(src) = element.get_attribute(&ns!(), &local_name!("src")) {
|
if let Some(src) = element.get_attribute(&ns!(), &local_name!("src")) {
|
||||||
// Step 31. If el has a src content attribute, then:
|
// Step 31. If el has a src content attribute, then:
|
||||||
|
|
||||||
// TODO: Step 31.1. If el's type is "importmap".
|
// Step 31.1. If el's type is "importmap".
|
||||||
|
if let ScriptType::ImportMap = script_type {
|
||||||
|
self.queue_error_event();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Step 31.2. Let src be the value of el's src attribute.
|
// Step 31.2. Let src be the value of el's src attribute.
|
||||||
let src = src.value();
|
let src = src.value();
|
||||||
|
@ -960,7 +964,8 @@ impl HTMLScriptElement {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
ScriptType::ImportMap => {
|
ScriptType::ImportMap => {
|
||||||
// TODO: Let result be the result of creating an import map parse result given source text and base URL.
|
// TODO: Let result be the result of creating an import map
|
||||||
|
// parse result given source text and base URL.
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1067,7 +1072,8 @@ impl HTMLScriptElement {
|
||||||
self.run_a_module_script(&script, false, can_gc);
|
self.run_a_module_script(&script, false, can_gc);
|
||||||
},
|
},
|
||||||
ScriptType::ImportMap => {
|
ScriptType::ImportMap => {
|
||||||
// TODO: Register an import map given el's relevant global object and el's result.
|
// TODO: Register an import map given el's relevant
|
||||||
|
// global object and el's result.
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue