mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
htmlmetaelement: improve parsing of meta http-equiv (#32508)
This commit is contained in:
parent
8eed3b442b
commit
6b6872831c
1 changed files with 8 additions and 1 deletions
|
@ -85,8 +85,15 @@ impl HTMLMetaElement {
|
|||
if name == "referrer" {
|
||||
self.apply_referrer();
|
||||
}
|
||||
// https://html.spec.whatwg.org/multipage/#attr-meta-http-equiv
|
||||
} else if !self.HttpEquiv().is_empty() {
|
||||
self.declarative_refresh();
|
||||
// TODO: Implement additional http-equiv candidates
|
||||
match self.HttpEquiv().to_ascii_lowercase().as_str() {
|
||||
"refresh" => {
|
||||
self.declarative_refresh();
|
||||
},
|
||||
_ => {},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue