mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 16:45:09 +00:00
LibWeb: Add spec links to IDL APIs in HTMLTableElement
This commit is contained in:
parent
2ded895107
commit
c355e9692d
1 changed files with 8 additions and 0 deletions
|
@ -73,6 +73,7 @@ void HTMLTableElement::set_caption(HTMLTableCaptionElement* caption)
|
||||||
MUST(pre_insert(*caption, first_child()));
|
MUST(pre_insert(*caption, first_child()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/tables.html#dom-table-createcaption
|
||||||
JS::NonnullGCPtr<HTMLTableCaptionElement> HTMLTableElement::create_caption()
|
JS::NonnullGCPtr<HTMLTableCaptionElement> HTMLTableElement::create_caption()
|
||||||
{
|
{
|
||||||
auto maybe_caption = caption();
|
auto maybe_caption = caption();
|
||||||
|
@ -85,6 +86,7 @@ JS::NonnullGCPtr<HTMLTableCaptionElement> HTMLTableElement::create_caption()
|
||||||
return static_cast<HTMLTableCaptionElement&>(*caption);
|
return static_cast<HTMLTableCaptionElement&>(*caption);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/tables.html#dom-table-deletecaption
|
||||||
void HTMLTableElement::delete_caption()
|
void HTMLTableElement::delete_caption()
|
||||||
{
|
{
|
||||||
auto maybe_caption = caption();
|
auto maybe_caption = caption();
|
||||||
|
@ -150,6 +152,7 @@ WebIDL::ExceptionOr<void> HTMLTableElement::set_t_head(HTMLTableSectionElement*
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/tables.html#dom-table-createthead
|
||||||
JS::NonnullGCPtr<HTMLTableSectionElement> HTMLTableElement::create_t_head()
|
JS::NonnullGCPtr<HTMLTableSectionElement> HTMLTableElement::create_t_head()
|
||||||
{
|
{
|
||||||
auto maybe_thead = t_head();
|
auto maybe_thead = t_head();
|
||||||
|
@ -181,6 +184,7 @@ JS::NonnullGCPtr<HTMLTableSectionElement> HTMLTableElement::create_t_head()
|
||||||
return static_cast<HTMLTableSectionElement&>(*thead);
|
return static_cast<HTMLTableSectionElement&>(*thead);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/tables.html#dom-table-deletethead
|
||||||
void HTMLTableElement::delete_t_head()
|
void HTMLTableElement::delete_t_head()
|
||||||
{
|
{
|
||||||
auto maybe_thead = t_head();
|
auto maybe_thead = t_head();
|
||||||
|
@ -224,6 +228,7 @@ WebIDL::ExceptionOr<void> HTMLTableElement::set_t_foot(HTMLTableSectionElement*
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/tables.html#dom-table-createtfoot
|
||||||
JS::NonnullGCPtr<HTMLTableSectionElement> HTMLTableElement::create_t_foot()
|
JS::NonnullGCPtr<HTMLTableSectionElement> HTMLTableElement::create_t_foot()
|
||||||
{
|
{
|
||||||
auto maybe_tfoot = t_foot();
|
auto maybe_tfoot = t_foot();
|
||||||
|
@ -235,6 +240,7 @@ JS::NonnullGCPtr<HTMLTableSectionElement> HTMLTableElement::create_t_foot()
|
||||||
return static_cast<HTMLTableSectionElement&>(*tfoot);
|
return static_cast<HTMLTableSectionElement&>(*tfoot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/tables.html#dom-table-deletetfoot
|
||||||
void HTMLTableElement::delete_t_foot()
|
void HTMLTableElement::delete_t_foot()
|
||||||
{
|
{
|
||||||
auto maybe_tfoot = t_foot();
|
auto maybe_tfoot = t_foot();
|
||||||
|
@ -256,6 +262,7 @@ JS::NonnullGCPtr<DOM::HTMLCollection> HTMLTableElement::t_bodies()
|
||||||
return *m_t_bodies;
|
return *m_t_bodies;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/tables.html#dom-table-createtbody
|
||||||
JS::NonnullGCPtr<HTMLTableSectionElement> HTMLTableElement::create_t_body()
|
JS::NonnullGCPtr<HTMLTableSectionElement> HTMLTableElement::create_t_body()
|
||||||
{
|
{
|
||||||
auto tbody = DOM::create_element(document(), TagNames::tbody, Namespace::HTML);
|
auto tbody = DOM::create_element(document(), TagNames::tbody, Namespace::HTML);
|
||||||
|
@ -312,6 +319,7 @@ JS::NonnullGCPtr<DOM::HTMLCollection> HTMLTableElement::rows()
|
||||||
return *m_rows;
|
return *m_rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/tables.html#dom-table-insertrow
|
||||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<HTMLTableRowElement>> HTMLTableElement::insert_row(long index)
|
WebIDL::ExceptionOr<JS::NonnullGCPtr<HTMLTableRowElement>> HTMLTableElement::insert_row(long index)
|
||||||
{
|
{
|
||||||
auto rows = this->rows();
|
auto rows = this->rows();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue