mirror of
https://github.com/servo/servo
synced 2026-05-03 21:02:19 +02:00
script: Expose legacy table cellSpacing, cellPadding, and align DOM properties (#43903)
We support these setting these as attributes on the `<table>` element itself, so I suppose it also makes sense to support their DOM APIs as well. This trades a teensy bit of code for compatability with a some old web content. Testing: This causes a handful of reflection subtests to start passing. There isn't much testing for the behavior of the attributes, but this is legacy behavior so it sort of makes sense. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
@@ -37,22 +37,14 @@ interface HTMLTableElement : HTMLElement {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#HTMLTableElement-partial
|
||||
partial interface HTMLTableElement {
|
||||
// [CEReactions]
|
||||
// attribute DOMString align;
|
||||
// [CEReactions]
|
||||
// attribute DOMString border;
|
||||
// [CEReactions]
|
||||
// attribute DOMString frame;
|
||||
// [CEReactions]
|
||||
// attribute DOMString rules;
|
||||
// [CEReactions]
|
||||
// attribute DOMString summary;
|
||||
[CEReactions] attribute DOMString align;
|
||||
// [CEReactions] attribute DOMString border;
|
||||
// [CEReactions] attribute DOMString frame;
|
||||
// [CEReactions] attribute DOMString rules;
|
||||
// [CEReactions] attribute DOMString summary;
|
||||
[CEReactions] attribute DOMString width;
|
||||
|
||||
[CEReactions]
|
||||
attribute [LegacyNullToEmptyString] DOMString bgColor;
|
||||
// [CEReactions, LegacyNullToEmptyString]
|
||||
// attribute DOMString cellPadding;
|
||||
// [CEReactions, LegacyNullToEmptyString]
|
||||
// attribute DOMString cellSpacing;
|
||||
[CEReactions] attribute [LegacyNullToEmptyString] DOMString bgColor;
|
||||
[CEReactions] attribute [LegacyNullToEmptyString] DOMString cellPadding;
|
||||
[CEReactions] attribute [LegacyNullToEmptyString] DOMString cellSpacing;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user