mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
285e29c066
commit
cf8f2b1874
9 changed files with 214 additions and 67 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue