Skip to content

Support top level text nodes. #6

@schultek

Description

@schultek

The package currently does not work with top level text nodes.

A call to DomBuilder.text() throws when there was no call to DomBuilder.open() before that.

Unhandled exception:
Bad state: No element
#0 List.last (dart:core-patch/growable_array.dart:365:5)
#1 _DomBuilder.text (package:domino/src/markup_impl.dart:170:28)

It has the same error with the browser implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions