FullHuman/purgecss

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

Closed this issue · 3 comments

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

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

Any news?

This issue should be fixed now :)