aanand / deadweight

NOT MAINTAINED
MIT License
1.19k stars 52 forks source link

Fix issue with javascript link selector in bootstrap #33

Closed mintuhouse closed 11 months ago

mintuhouse commented 8 years ago

running deadweight on

# bootstrap/_print.scss

a[href^="#"]:after,
a[href^="javascript:"]:after {
    content: "";
}

gives following error as strip changes a[href^="javascript:"]:after to a[href^="javascript which is an invalid selector

gems/nokogiri-1.6.6.2/lib/nokogiri/css/parser_extras.rb:87:in `on_error': unexpected '"' after 'prefix_match' (Nokogiri::CSS::SyntaxError)
mintuhouse commented 8 years ago

Only problem being regex look behind works only from ruby 1.9 and above