Skip to content

ClassCastException AnonymousBlockBox cannot be cast to TableCellBox on TD: float-left #309

@ghost

Description

We see this exception:
java.lang.ClassCastException: com.openhtmltopdf.render.AnonymousBlockBox cannot be cast to com.openhtmltopdf.newtable.TableCellBox

With HTML
<table> <tr> <td style="float:left">something</td> <td>xx</td> </tr> </table>
Granted float:left on a td doesn't make sense but a warning to the log is preferable to an exception if possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions