The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Validate HTML Locally In Your Specs -- html_validation 1.1

by Eric Beland — 21 March 2014

Validate HTML locally in your integration tests. No more dependencies on a third party service. Run faster. Improve your search ranking (google CARES about valid html!) Know when you make an HTML mistake. html_validation wraps the HTML Tidy executable by the W3C, and supports HTML 5.

New in version 1.1, you can specify validation errors to globally ignore, attributes to ignore, and tags to ignore. Because sometimes you need to break the rules…

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will bedirected via GitHub to signup or sign in