mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibWeb: Anonymous table cells should have colspan=1
Otherwise the column widths calculation algorithm will assert. Fixes #5078.
This commit is contained in:
@@ -47,7 +47,7 @@ TableCellBox::~TableCellBox()
|
||||
size_t TableCellBox::colspan() const
|
||||
{
|
||||
if (!dom_node())
|
||||
return 0;
|
||||
return 1;
|
||||
return downcast<DOM::Element>(*dom_node()).attribute(HTML::AttributeNames::colspan).to_uint().value_or(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user