Skip to content

[BUG] <p> tags within table results in the HTML widget disappearing #1351

Open
@OhTerryTorres

Description

@OhTerryTorres
════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during performLayout():
Intrinsics are not available for PlaceholderAlignment.baseline, PlaceholderAlignment.aboveBaseline, or PlaceholderAlignment.belowBaseline.
'package:flutter/src/rendering/paragraph.dart':
paragraph.dart:1
Failed assertion: line 512 pos 13: 'RenderObject.debugCheckingIntrinsics'

2

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

The relevant error-causing widget was
Html
...

HTML to reproduce the issue:
<table><tr><th>Contact</th><th>Country</th></tr><tr><td><p>Maria Anders</p></td><td>Germany</td></tr><tr><td><p>Francisco Chang</p></td><td>Mexico</td></tr></table>

Expected behavior:
<p> tags exert their own style on elements within a table. Or at least are ignored instead of breaking the table.

Screenshots:
Without <p> tags

With <p> tags

A picture of a cute animal (not mandatory but encouraged)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions