mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02:00
LibWeb: Add HTMLTableCellElement::rowSpan
This commit is contained in:
committed by
Andreas Kling
parent
b7b647e9cd
commit
bc4974648c
Notes:
sideshowbarker
2024-07-17 16:35:57 +09:00
Author: https://github.com/skyrising Commit: https://github.com/SerenityOS/serenity/commit/bc4974648c Pull-request: https://github.com/SerenityOS/serenity/pull/13323 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/awesomekling
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user