Skip to content

DOMParser does not normalize line breaks #49

Description

@victorandree

If I parse an XML string containing newlines encoded as \r\n (#xD #xA), these are not normalized into \n (#xA). I think this violates the "End-of-Line Handling" section of the XML specification.

To simplify the tasks of applications, the XML processor MUST behave as if it normalized all line breaks in external parsed entities (including the document entity) on input, before parsing, by translating both the two-character sequence #xD #xA and any #xD that is not followed by #xA to a single #xA character.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingspec:XMLhttps://www.w3.org/TR/xml11/

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions