purify / mail_style

Making HTML emails a little less painful. Writes css inline and corrects image urls.
http://blog.purifyapp.com/2009/12/30/mailstyle-a-html-email-plugin-for-ruby-on-rails/
MIT License
192 stars 39 forks source link

:hover, :link, etc. cause XPath problems #7

Open ramontayag opened 14 years ago

ramontayag commented 14 years ago

Not sure if this is a Nokogiri problem, or a problem with escaping some characters, but when I have :hover, :link, or :visited in my CSS, I get this error:

A RuntimeError occurred in newsletters#deliver_sample:

xmlXPathCompOpEval: function hover not found

/usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/node.rb:142:in `evaluate'