Move storage of bgcolor attribute on <body>.

This commit is contained in:
Eli Friedman 2015-11-07 23:27:07 -08:00
parent 3780fb7fe0
commit 0901e5bc97
3 changed files with 31 additions and 19 deletions

View file

@ -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);
}
}