Use attribute getter/setter macros for misc DOM attributes.

This fixes a few minor bugs.

Also adds some better testing for "unsigned long" attributes.
This commit is contained in:
Eli Friedman 2015-11-01 12:47:28 -08:00
parent 285e29c066
commit cf8f2b1874
9 changed files with 214 additions and 67 deletions

View file

@ -53,7 +53,7 @@ impl HTMLTableCellElementMethods for HTMLTableCellElement {
make_uint_getter!(ColSpan, "colspan", DEFAULT_COLSPAN);
// https://html.spec.whatwg.org/multipage/#dom-tdth-colspan
make_uint_setter!(SetColSpan, "colspan");
make_uint_setter!(SetColSpan, "colspan", DEFAULT_COLSPAN);
// https://html.spec.whatwg.org/multipage/#dom-tdth-cellindex
fn CellIndex(&self) -> i32 {