From 6b6872831ccc83e37dc9a8b1842c125606943d69 Mon Sep 17 00:00:00 2001 From: shanehandley <1322294+shanehandley@users.noreply.github.com> Date: Sun, 16 Jun 2024 00:29:08 +1000 Subject: [PATCH] htmlmetaelement: improve parsing of meta http-equiv (#32508) --- components/script/dom/htmlmetaelement.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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(); + }, + _ => {}, + } } }