Purgecss: Attribute selector with empty value [value=""] is purged to without value [value]

Created on 11 Jul 2018  路  3Comments  路  Source: FullHuman/purgecss

Attribute selector with empty value is purged to without value.

Input

option[value=""] {
  // my css
}

Bad output

option[value] {
  // my purged css
} 

Expected output

option[value=""] {
  // my purged css
}

Versions

  • NodeJS: v8.11.3
  • purgecss: 1.0.1
  • grunt-purgecss: 1.0.0
bug

Most helpful comment

This issue should be fixed now :)

All 3 comments

I'm also having this issue with img[src=""]

Any news?

This issue should be fixed now :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ffloriel picture Ffloriel  路  6Comments

ZiggyV picture ZiggyV  路  4Comments

TylerBarnes picture TylerBarnes  路  5Comments

crazy4groovy picture crazy4groovy  路  7Comments

simplenotezy picture simplenotezy  路  3Comments