mirror of
https://github.com/servo/servo.git
synced 2025-07-25 08:10:21 +01:00
Move storage of bgcolor attribute on <body>.
This commit is contained in:
parent
3780fb7fe0
commit
0901e5bc97
3 changed files with 31 additions and 19 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue