mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #8505 - frewsxcv:html-table-cell-element-bgcolor-idl-attribute, r=Ms2ger
Implement 'bgcolor' IDL attribute for 'HTMLTableCellElement' <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8505) <!-- Reviewable:end -->
This commit is contained in:
commit
f078f8fdf4
4 changed files with 7 additions and 268 deletions
|
@ -50,6 +50,12 @@ impl HTMLTableCellElementMethods for HTMLTableCellElement {
|
|||
// https://html.spec.whatwg.org/multipage/#dom-tdth-colspan
|
||||
make_uint_setter!(SetColSpan, "colspan", DEFAULT_COLSPAN);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-tdth-bgcolor
|
||||
make_getter!(BgColor);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-tdth-bgcolor
|
||||
make_legacy_color_setter!(SetBgColor, "bgcolor");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-tdth-cellindex
|
||||
fn CellIndex(&self) -> i32 {
|
||||
let self_node = self.upcast::<Node>();
|
||||
|
|
|
@ -26,5 +26,5 @@ partial interface HTMLTableCellElement {
|
|||
// attribute boolean noWrap;
|
||||
// attribute DOMString vAlign;
|
||||
|
||||
//[TreatNullAs=EmptyString] attribute DOMString bgColor;
|
||||
[TreatNullAs=EmptyString] attribute DOMString bgColor;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue