aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlmetaelement.rs
diff options
context:
space:
mode:
authorshanehandley <1322294+shanehandley@users.noreply.github.com>2024-06-16 00:29:08 +1000
committerGitHub <noreply@github.com>2024-06-15 14:29:08 +0000
commit6b6872831ccc83e37dc9a8b1842c125606943d69 (patch)
treecc7db461d33b7fde7393c512947c04d01a36564c /components/script/dom/htmlmetaelement.rs
parent8eed3b442b214f678b80dbcc7dca07eeaa1e26ff (diff)
downloadservo-6b6872831ccc83e37dc9a8b1842c125606943d69.tar.gz
servo-6b6872831ccc83e37dc9a8b1842c125606943d69.zip
htmlmetaelement: improve parsing of meta http-equiv (#32508)
Diffstat (limited to 'components/script/dom/htmlmetaelement.rs')
-rw-r--r--components/script/dom/htmlmetaelement.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/components/script/dom/htmlmetaelement.rs b/components/script/dom/htmlmetaelement.rs
index 1f1d4997b8a..c3bf89a1124 100644
--- a/components/script/dom/htmlmetaelement.rs
+++ b/components/script/dom/htmlmetaelement.rs
@@ -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();
+ },
+ _ => {},
+ }
}
}