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

LibWeb: Add HTMLTableCellElement::colSpan

This commit is contained in:
Simon Wanner 2022-03-28 23:27:56 +02:00 committed by Andreas Kling
parent b92cc3670b
commit b7b647e9cd
3 changed files with 14 additions and 0 deletions

View file

@ -48,4 +48,14 @@ void HTMLTableCellElement::apply_presentational_hints(CSS::StyleProperties& styl
});
}
unsigned int HTMLTableCellElement::col_span() const
{
return attribute(HTML::AttributeNames::colspan).to_uint().value_or(1);
}
void HTMLTableCellElement::set_col_span(unsigned int value)
{
set_attribute(HTML::AttributeNames::colspan, String::number(value));
}
}