1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 07:14:58 +00:00

LibWeb: Add HTMLTableCellElement::rowSpan

This commit is contained in:
Simon Wanner 2022-03-28 23:36:10 +02:00 committed by Andreas Kling
parent b7b647e9cd
commit bc4974648c
4 changed files with 15 additions and 0 deletions

View file

@ -58,4 +58,14 @@ void HTMLTableCellElement::set_col_span(unsigned int value)
set_attribute(HTML::AttributeNames::colspan, String::number(value));
}
unsigned int HTMLTableCellElement::row_span() const
{
return attribute(HTML::AttributeNames::rowspan).to_uint().value_or(1);
}
void HTMLTableCellElement::set_row_span(unsigned int value)
{
set_attribute(HTML::AttributeNames::rowspan, String::number(value));
}
}