Skip to content

loss of empty attribute value #185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alexander-akait opened this issue Mar 6, 2019 · 1 comment · Fixed by #186
Closed

loss of empty attribute value #185

alexander-akait opened this issue Mar 6, 2019 · 1 comment · Fixed by #186
Labels

Comments

@alexander-akait
Copy link
Collaborator

Reproducible example:

const parser = require('postcss-selector-parser');

const transform = (selectors) => {
  selectors.walk((selector) => {
    // do something with the selector
  });
};

const transformed = parser(transform).processSync('a[href=""]');

console.log(transformed);
// a[href]
@alexander-akait
Copy link
Collaborator Author

Also broken parsing [href="" i] (it is valid selector)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant