From 6e127f62d7ccb808a1a7705c581f88f6b7ceb266 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 15 Dec 2022 19:48:22 +0100 Subject: [PATCH] LibWeb: Add spec link and comment to HTMLTableElement::caption() --- Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp index 5bf12f9665..5a6ad195a0 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp @@ -54,8 +54,11 @@ void HTMLTableElement::apply_presentational_hints(CSS::StyleProperties& style) c }); } +// https://html.spec.whatwg.org/multipage/tables.html#dom-table-caption JS::GCPtr HTMLTableElement::caption() { + // The caption IDL attribute must return, on getting, the first caption element child of the table element, + // if any, or null otherwise. return first_child_of_type(); }