Skip to content

XML element name supports subset of valid NameStartChars #594

@ablackton

Description

@ablackton

Tidy only recognizes xml elements whose names begin with a letter character.

Sample input

<?xml version="1.0" encoding="UTF-8"?><form><_a></_a><:b></:b></form>

Current output

<?xml version="1.0" encoding="utf-8"?>
<form>&lt;_a&gt;&lt;/_a&gt;&lt;:b&gt;&lt;/:b&gt;</form>

Expected output

<?xml version="1.0" encoding="utf-8"?>
<form>
<_a></_a>
<:b></:b>
</form>

Tidy config

input-xml: yes
output-xml: yes

Tidy version

tidy --version
HTML Tidy for Windows version 5.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions