File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1975,6 +1975,7 @@ mod tests {
19751975 minify_test ( "[foo=\" baz\" ] {}" , "[foo=baz]{}" ) ;
19761976 minify_test ( "[foo=\" foo bar\" ] {}" , "[foo=foo\\ bar]{}" ) ;
19771977 minify_test ( "[foo=\" foo bar baz\" ] {}" , "[foo=\" foo bar baz\" ]{}" ) ;
1978+ minify_test ( "[foo=\" \" ] {}" , "[foo=\" \" ]{}" ) ;
19781979 minify_test ( ".test:not([foo=\" bar\" ]) {}" , ".test:not([foo=bar]){}" ) ;
19791980 minify_test ( ".test + .foo {}" , ".test+.foo{}" ) ;
19801981 minify_test ( ".test ~ .foo {}" , ".test~.foo{}" ) ;
Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ impl ToCss for Component<Selectors> {
375375 let mut s = String :: new ( ) ;
376376 value. write_string ( & mut s) ?;
377377
378- if id. len ( ) < s. len ( ) + 2 {
378+ if id. len ( ) > 0 && id . len ( ) < s. len ( ) + 2 {
379379 dest. write_str ( & id) ?;
380380 } else {
381381 dest. write_char ( '"' ) ?;
You can’t perform that action at this time.
0 commit comments