mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
LibWeb: Add spec link and comment to HTMLTableElement::caption()
This commit is contained in:
parent
992b4489ad
commit
6e127f62d7
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/awesomekling
Commit: 6e127f62d7
Pull-request: https://github.com/SerenityOS/serenity/pull/16517
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()
|
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>();
|
return first_child_of_type<HTMLTableCaptionElement>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue