GithubHelp home page GithubHelp logo

ericbeland / html_acceptance Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 1.0 128 KB

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

Ruby 100.00%

html_acceptance's People

Contributors

ericbeland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

abunai59

html_acceptance's Issues

No support for HTML5

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?

Add option to set validation level

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".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.