aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltableelement.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-09-26 10:07:34 -0400
committerCorey Farwell <coreyf@rwell.org>2015-09-26 10:15:58 -0400
commita844b080d6728d29520b86625ca58915782cec0a (patch)
tree24e3c21ef1c81efe0897f4dc7c87c0e8a8920afa /components/script/dom/htmltableelement.rs
parentd39c8546b6bf03c69b1cde925c72722dfd61e588 (diff)
downloadservo-a844b080d6728d29520b86625ca58915782cec0a.tar.gz
servo-a844b080d6728d29520b86625ca58915782cec0a.zip
Imlement 'bgcolor' IDL attrs for table elements
The content attributes and presentational hints were implemented in the #4289 pull request. This just implements the relevant IDL attributes.
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 6a63223d09d..1308aff4a44 100644
--- a/components/script/dom/htmltableelement.rs
+++ b/components/script/dom/htmltableelement.rs
@@ -127,6 +127,12 @@ impl HTMLTableElementMethods for HTMLTableElement {
reference_element.r()).is_ok());
tbody
}
+
+ // https://html.spec.whatwg.org/multipage/#dom-table-bgcolor
+ make_getter!(BgColor);
+
+ // https://html.spec.whatwg.org/multipage/#dom-table-bgcolor
+ make_setter!(SetBgColor, "bgcolor");
}