Skip to content

Text after closing list tag is added to list #663

@koenvanzuijlen

Description

@koenvanzuijlen

When you use an input element to load stored HTML and it has an unordered list in it, any text that comes after the list closing tag is handled as if it is part of the last list item.

Steps to Reproduce

This code reproduces the issue:

<input id="x" type="hidden" name="content" value="<ul><li>Item 1</li><li>Item 2</li></ul>This should not be in the list" />

<trix-editor input="x">
</trix-editor>
Details
  • Trix version: 1.2.0
  • Browser name and version: Any
  • Operating system: Any

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