Skip to content

Preserve control characters in parsed tag names #2538

Closed

Description

@jhy

Tokenizer tag names were normalized with trim(), which could make a name ending in a control character take on the parsing behavior of a different element.

Lower-case source names without trimming them, while retaining trimming for programmatic Tag.valueOf() input.

This keeps the token and resulting Tag consistent and prevents raw-data content from being exposed as markup during serialization

Activity

  1. added this to the 1.23.1 milestone on Jul 26, 2026
  2. self-assigned this
    on Jul 26, 2026
  3. added
    bug
    on Jul 26, 2026
  4. jhy commented on Jul 26, 2026

    @jhy
    OwnerAuthor

    Fixed by 92f1aca

  5. added
    fixed
    on Jul 26, 2026
  6. jhy commented on Jul 30, 2026

    @jhy
    OwnerAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugfixed

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions