Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

XML attribute value with ">" breaks syntax highlighting #563

Description

@boghyon

This issue is similar to #339, but this time it's about > instead of <.

  • According to the XML specification, the left angle bracket (<) MUST be escaped. (no problem)
  • The right angle bracket (>), however, doesn't need to be.

    The right angle bracket (>) may be represented using the string " > ", and MUST, for compatibility, be escaped

Borrowing @amroamroamro's example, you can see here that this document is valid

<?xml version="1.0"?>
<Person AgeCategory=">3" ></Person>

right angle bracket is a valid character in xml

Using prettify, the highlighting gets unfortunately broken.

sample broken highlighting
Source: OpenUI5 Walkthrough

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