From d1bea9c2a4f6bfc9382f7cd1362f6ac7f64a8152 Mon Sep 17 00:00:00 2001 From: Khaled Lakehal Date: Sun, 1 Sep 2024 17:33:11 +0200 Subject: [PATCH] LibWeb: Add `scope` attribute to HTMLTableCellElement --- .../Libraries/LibWeb/HTML/HTMLTableCellElement.idl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableCellElement.idl b/Userland/Libraries/LibWeb/HTML/HTMLTableCellElement.idl index a3c4c6d430a..e4353df6387 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTableCellElement.idl +++ b/Userland/Libraries/LibWeb/HTML/HTMLTableCellElement.idl @@ -1,5 +1,13 @@ #import +// https://html.spec.whatwg.org/multipage/tables.html#attr-th-scope +enum ScopeAttribute { + "row", + "col", + "rowgroup", + "colgroup" +}; + // https://html.spec.whatwg.org/multipage/tables.html#htmltablecellelement [Exposed=Window] interface HTMLTableCellElement : HTMLElement { @@ -11,7 +19,7 @@ interface HTMLTableCellElement : HTMLElement { [CEReactions, Reflect] attribute DOMString headers; readonly attribute long cellIndex; - [FIXME, CEReactions] attribute DOMString scope; // only conforming for th elements + [CEReactions, Enumerated=ScopeAttribute, Reflect] attribute DOMString scope; // only conforming for th elements [CEReactions, Reflect] attribute DOMString abbr; // only conforming for th elements // Obsolete