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:
Martin Robinson
2026-04-03 20:09:13 +02:00
committed by GitHub
parent 4e315eba20
commit b9df62427b
4 changed files with 20 additions and 376 deletions

View File

@@ -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;
};