mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix type attribute for module script not in case insensitive issue (#30206)
* fix(htmlscriptelement): Make sure type for module is in case insensitive * fix(htmlscripthtml): Remove related .ini file since the tests are passed
This commit is contained in:
parent
88208024c6
commit
42c705b4ad
3 changed files with 3 additions and 15 deletions
|
@ -1186,7 +1186,9 @@ impl HTMLScriptElement {
|
|||
(Some(ref ty), _) => {
|
||||
debug!("script type={}", &***ty);
|
||||
|
||||
if &***ty == String::from("module") {
|
||||
if ty.to_ascii_lowercase().trim_matches(HTML_SPACE_CHARACTERS) ==
|
||||
String::from("module")
|
||||
{
|
||||
return Some(ScriptType::Module);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
[type.html]
|
||||
[type="MODULE"]
|
||||
expected: FAIL
|
||||
|
||||
[type="Module"]
|
||||
expected: FAIL
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
[type.html]
|
||||
[type="MODULE"]
|
||||
expected: FAIL
|
||||
|
||||
[type="Module"]
|
||||
expected: FAIL
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue