Auto merge of #8447 - frewsxcv:htmltableelement-width-idl-attribute, r=eefriedman

Implement 'width' IDL attribute on <table>

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8447)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-11-10 12:54:30 +05:30
commit 81f094b129
4 changed files with 7 additions and 136 deletions

View file

@ -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 {

View file

@ -32,7 +32,7 @@ partial interface HTMLTableElement {
// attribute DOMString frame;
// attribute DOMString rules;
// attribute DOMString summary;
// attribute DOMString width;
attribute DOMString width;
[TreatNullAs=EmptyString] attribute DOMString bgColor;
//[TreatNullAs=EmptyString] attribute DOMString cellPadding;