From 215774509324d4d83391fedcd08fed4792b97c31 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 24 Nov 2022 19:15:33 +0100 Subject: [PATCH] LibWeb: Add missing [SameObject] extended attributes in IDL files --- Userland/Libraries/LibWeb/DOM/Document.idl | 16 ++++++++-------- .../Libraries/LibWeb/HTML/HTMLTableElement.idl | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Userland/Libraries/LibWeb/DOM/Document.idl b/Userland/Libraries/LibWeb/DOM/Document.idl index 473d59254b..2ced26cf6f 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.idl +++ b/Userland/Libraries/LibWeb/DOM/Document.idl @@ -60,14 +60,14 @@ interface Document : Node { HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName); HTMLCollection getElementsByClassName(DOMString className); - readonly attribute HTMLCollection applets; - readonly attribute HTMLCollection anchors; - readonly attribute HTMLCollection images; - readonly attribute HTMLCollection embeds; - readonly attribute HTMLCollection plugins; - readonly attribute HTMLCollection links; - readonly attribute HTMLCollection forms; - readonly attribute HTMLCollection scripts; + [SameObject] readonly attribute HTMLCollection applets; + [SameObject] readonly attribute HTMLCollection anchors; + [SameObject] readonly attribute HTMLCollection images; + [SameObject] readonly attribute HTMLCollection embeds; + [SameObject] readonly attribute HTMLCollection plugins; + [SameObject] readonly attribute HTMLCollection links; + [SameObject] readonly attribute HTMLCollection forms; + [SameObject] readonly attribute HTMLCollection scripts; // FIXME: Should return an HTMLAllCollection readonly attribute HTMLCollection all; diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableElement.idl b/Userland/Libraries/LibWeb/HTML/HTMLTableElement.idl index c6ef9dcc78..02987f1427 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTableElement.idl +++ b/Userland/Libraries/LibWeb/HTML/HTMLTableElement.idl @@ -20,10 +20,10 @@ interface HTMLTableElement : HTMLElement { HTMLTableSectionElement createTFoot(); undefined deleteTFoot(); - readonly attribute HTMLCollection tBodies; + [SameObject] readonly attribute HTMLCollection tBodies; HTMLTableSectionElement createTBody(); - readonly attribute HTMLCollection rows; + [SameObject] readonly attribute HTMLCollection rows; HTMLTableRowElement insertRow(optional long index = -1); undefined deleteRow(long index);