htmlmetaelement: improve parsing of meta http-equiv (#32508)

This commit is contained in:
shanehandley 2024-06-16 00:29:08 +10:00 committed by GitHub
parent 8eed3b442b
commit 6b6872831c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
},
_ => {},
}
}
}