Skip to content

Unconditionnal attribute value whitespace collapsing and stripping can be annoying #5

Description

@dbuenzli

Xmlm performs attribute value whitespace collapsing and stripping unconditionally.

While this seems to be a good default and nobody complained so far, today someone did. The spec says this should only be performed on non CDATA (and hence declared) attributes. Since Xmlm is not DTD aware this is problematic.

One solution would be to add a boolean optional argument ?cdata_attributes to make_input so that whitespace collapsing and stripping is simply never performed on attribute values. That would let application writers have the freedom to do what they think is best (which is not the case right now).

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