aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltableelement.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-11-09 23:13:41 -0500
committerCorey Farwell <coreyf@rwell.org>2015-11-09 23:31:25 -0500
commit575b3c3d4ba80a12a11557d6db43e04b1e745a8f (patch)
tree3fc83db015bf0ca9ff506c2e33f8c0be4ac13763 /components/script/dom/htmltableelement.rs
parentcd6813ea3930d0d98cace8bf730286e1802fd280 (diff)
downloadservo-575b3c3d4ba80a12a11557d6db43e04b1e745a8f.tar.gz
servo-575b3c3d4ba80a12a11557d6db43e04b1e745a8f.zip
Implement 'width' IDL attribute on <table>
Diffstat (limited to 'components/script/dom/htmltableelement.rs')
-rw-r--r--components/script/dom/htmltableelement.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/htmltableelement.rs b/components/script/dom/htmltableelement.rs
index ca22d1f92b3..355e23f6c59 100644
--- a/components/script/dom/htmltableelement.rs
+++ b/components/script/dom/htmltableelement.rs
@@ -115,6 +115,12 @@ impl HTMLTableElementMethods for HTMLTableElement {
// https://html.spec.whatwg.org/multipage/#dom-table-bgcolor
make_setter!(SetBgColor, "bgcolor");
+
+ // https://html.spec.whatwg.org/multipage/#dom-table-width
+ make_getter!(Width);
+
+ // https://html.spec.whatwg.org/multipage/#dom-table-width
+ make_dimension_setter!(SetWidth, "width");
}
pub trait HTMLTableElementLayoutHelpers {