Skip to content

Attribute selector with pipe gets mangled #229

@papandreou

Description

@papandreou

Context: cssnano/cssnano#925

console.log(require('postcss-selector-parser')().processSync('[ foo | bar ]'));
'[ foo  ]'

Expected output: [ foo | bar ].

Interestingly, it does work when removing some of the whitespace around the |:

  • [ foo| bar ] => [ foo|bar ]
  • [ foo|bar ] => [ foo|bar ]

But:

  • [ foo |bar ] => [ foobar ]

Maybe related to #200

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions