Skip to content

attribute value normalization in Canonicalization Algorithm #148

Open
@gtkirankumar31

Description

@gtkirankumar31

With Reference to https://www.w3.org/TR/xml/#AVNormalize
we need to append a space character (#x20) for a white space character (#x20, #xD, #xA, #x9) to the normalized value. But we are also replacing multiple spaces by single space.
Need a small change in encodeSpecialCharactersInAttribute fn.

Existing code:
.replace(/[\r\n\t ]+/g, ' ')
Code change required:

.replace(/[\r\n\t ]/g, ' ')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions