diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2015-11-07 23:27:07 -0800 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2015-11-08 17:29:49 -0800 |
commit | 0901e5bc972a1df1a11bcc213b9271ce7253b0c7 (patch) | |
tree | 3e481698542ac30af905249e17c6c994f03b6263 /components/script/dom/document.rs | |
parent | 3780fb7fe02ed66bd391421a0c5506b5635279dd (diff) | |
download | servo-0901e5bc972a1df1a11bcc213b9271ce7253b0c7.tar.gz servo-0901e5bc972a1df1a11bcc213b9271ce7253b0c7.zip |
Move storage of bgcolor attribute on <body>.
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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::<HTMLBodyElement>) { - body.upcast::<Element>().set_string_attribute(local_name, value); + let body = body.upcast::<Element>(); + let value = body.parse_attribute(&ns!(""), &local_name, value); + body.set_attribute(local_name, value); } } |