Skip to content

[BUG] detail/summary not rendered correctly in latest version with HtmlExtension #1275

Closed
@arjanmels

Description

@arjanmels

Describe the bug:
After transition to HtmlExtension the details/summary tags sometimes show "Details" instead of the summary provided in the summary tag.
Debugged in the code: due to context.builtChildrenMap in DetailsElementBuiltIn build function containing "[text]" element as first child instead of summary.

HTML to reproduce the issue:

<!DOCTYPE html>
<html>
<body>
<details>
  <summary><h1>Header</h1></summary>
  <p>These are the details.</p>
</details>
</body>
</html>

Html widget configuration:
Not relevant

Expected behavior:
Should show the "Header" text instead of "Details"

Device details and Flutter/Dart/flutter_html versions:
Flutter 3.10.1 / Dart 3.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions