From 0901e5bc972a1df1a11bcc213b9271ce7253b0c7 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sat, 7 Nov 2015 23:27:07 -0800 Subject: Move storage of bgcolor attribute on . --- components/script/dom/document.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'components/script/dom/document.rs') diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index dc3225bba04..14c4f5da5e9 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -968,7 +968,9 @@ impl Document { pub fn set_body_attribute(&self, local_name: &Atom, value: DOMString) { if let Some(ref body) = self.GetBody().and_then(Root::downcast::) { - body.upcast::().set_string_attribute(local_name, value); + let body = body.upcast::(); + let value = body.parse_attribute(&ns!(""), &local_name, value); + body.set_attribute(local_name, value); } } -- cgit v1.2.3