mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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:
parent
89483a9408
commit
ce1c8e0bde
Notes:
sideshowbarker
2024-07-18 22:33:38 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ce1c8e0bdee
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue