Add parsing of double values in style attributes

This commit is contained in:
Keith Yeung 2016-04-12 18:01:09 -04:00
parent 84ab7e9fe8
commit 48b2e9c055
11 changed files with 132 additions and 14 deletions

View file

@ -410,7 +410,7 @@ impl VirtualMethods for HTMLTableElement {
}
atom!("cellspacing") => {
self.cellspacing.set(mutation.new_value(attr).and_then(|value| {
parse_unsigned_integer(value.chars())
parse_unsigned_integer(value.chars()).ok()
}));
},
_ => {},