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(); }