Skip to content

Formatting breaks attributes containing quotes #182

@tkovacs-dev

Description

@tkovacs-dev

How to reproduce:

  1. Use this document: <hello attr='"' />
  2. Run the "Format document" command, with xml.format.quotations set to doubleQuotes (the default)

Symptoms:
The formatting produces the following invalid XML: <hello attr=""" />

Expected:
Formatting shouldn't change the type of quote used for an attribute if that produces invalid XML, that is if the attribute value contains the quote character.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions