Skip to content

Greater-than symbol in attribute values #36

Description

@danielearwicker

Given the input:

<e a="&gt;">&gt;</e> 

the parser says the attribute's value is &gt; but the text content is ">". Similarly if the attribute value is &apos; it is not decoded. So attribute values are passed through without decoding, unlike text content.

Given the input:

<e a="&gt;">></e>

the parser says the same as before (this is correct, as encoding greater-than is optional except in the pattern ]]>.)

But given the input:

<e a=">"></e>

The parser gives the error: "Attribute: values are required and must be in quotes".

It seems this should be allowed in XML, and is allowed in most parsers: http://stackoverflow.com/questions/5665967/xml-parsing-curiosity-greater-than-in-attribute

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions