mirror of
https://github.com/RGBCube/serenity
synced 2025-07-04 05:47:35 +00:00
LibWeb: Add spec link and comment to HTMLTableElement::caption()
This commit is contained in:
parent
992b4489ad
commit
6e127f62d7
1 changed files with 3 additions and 0 deletions
|
@ -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<HTMLTableCaptionElement> 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<HTMLTableCaptionElement>();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue