ericbeland / html_acceptance Goto Github PK
View Code? Open in Web Editor NEWHTML Acceptance is a wrapper for HTML validation with Tidy--useful for acceptance testing or as part of a continuous integration test suite.
License: MIT License
HTML Acceptance is a wrapper for HTML validation with Tidy--useful for acceptance testing or as part of a continuous integration test suite.
License: MIT License
Output:
example.com/de Invalid html (fix or run rake html_acceptance task to add exceptions)
example.com/de exceptions:
line 23 column 1 - Error: <header> is not recognized!
line 23 column 1 - Warning: discarding unexpected <header>
line 24 column 1 - Warning: discarding unexpected </header>
line 35 column 1 - Error: <section> is not recognized!
line 35 column 1 - Warning: discarding unexpected <section>
line 35 column 12 - Error: <header> is not recognized!
line 35 column 12 - Warning: discarding unexpected <header>
line 41 column 7 - Warning: discarding unexpected </header>
line 44 column 1 - Warning: discarding unexpected </section>
line 51 column 1 - Error: <section> is not recognized!
line 51 column 1 - Warning: discarding unexpected <section>
line 51 column 12 - Error: <header> is not recognized!
line 51 column 12 - Warning: discarding unexpected <header>
line 57 column 7 - Warning: discarding unexpected </header>
line 60 column 1 - Warning: discarding unexpected </section>
line 65 column 1 - Error: <section> is not recognized!
Seems HTML5 is not supported. Any way to do this? I found https://github.com/w3c/tidy-html5, but it's experimental, and I don't know whether it would work with your gem?
Hi,
really like the gem. Great to have some basic coverage on html validity!
It would be very helpfull if one could set the validation level. For instance i would like to ignore "Warnings" for now and only check for "Error".
I found your gem coming from stackoverflow where you mention the integration of html_acceptance into rspec.
I think it would be very helpful for many if the readme would explain how to use this gem in rspec tests and test-unit integration tests.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.