Mon Aug 13 06:48:07 EST 2007 Matt Palmer * Be a little more tolerant of the old-and-dodgy version of the w3c validator shipped with Ubuntu Dapper diff -rN -u old-bugfixes/lib/validator.rb new-bugfixes/lib/validator.rb --- old-bugfixes/lib/validator.rb 2008-10-20 23:30:58.844857344 +1100 +++ new-bugfixes/lib/validator.rb 2008-10-20 23:30:58.844857344 +1100 @@ -41,7 +41,7 @@ def self.w3c_errors(body) response = Net::HTTP.post_form(URI.parse(w3c_url), {'ss'=>w3c_show_source, 'fragment'=>body}) - error = response['x-w3c-validator-status'] == 'Valid' ? nil : response.body + error = response['x-w3c-validator-status'] == 'Valid' ? nil : (response.body =~ /checked and found to be valid/i ? nil : response.body) if error # Reference in the stylesheets error.sub!(%r{@import "./base.css"}, %Q{@import "#{File.dirname(w3c_url)}/base.css"})