New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate HTML/CSS/... #872
Comments
So the files that need to be validated can be located like so? $ find . | grep -vE "htmlcov|json" | grep -E "\.html|\.css|\.js"
./.tox/py34/lib/python3.4/site-packages/pytest_html/resources/main.js
./.tox/py34/lib/python3.4/site-packages/pytest_html/resources/style.css
./.tox/py34/lib/python3.4/site-packages/coverage/htmlfiles/index.html
./.tox/py34/lib/python3.4/site-packages/coverage/htmlfiles/coverage_html.js
./.tox/py34/lib/python3.4/site-packages/coverage/htmlfiles/pyfile.html
./.tox/py34/lib/python3.4/site-packages/coverage/htmlfiles/jquery.tablesorter.min.js
./.tox/py34/lib/python3.4/site-packages/coverage/htmlfiles/jquery.debounce.min.js
./.tox/py34/lib/python3.4/site-packages/coverage/htmlfiles/jquery.min.js
./.tox/py34/lib/python3.4/site-packages/coverage/htmlfiles/jquery.hotkeys.js
./.tox/py34/lib/python3.4/site-packages/coverage/htmlfiles/jquery.isonscreen.js
./.tox/py34/lib/python3.4/site-packages/coverage/htmlfiles/style.css
./.tox/py34/lib/python3.4/site-packages/qutebrowser/javascript/position_caret.js
./.tox/py34/lib/python3.4/site-packages/qutebrowser/html/error.html
./.tox/py34/lib/python3.4/site-packages/qutebrowser/html/dirbrowser.html
./.tox/py34/lib/python3.4/site-packages/qutebrowser/html/COPYING.html
./.tox/py34/lib/python3.4/site-packages/qutebrowser/html/base.html
./.tox/py34/lib/python3.4/site-packages/qutebrowser/html/settings.html
./.tox/py34/lib/python3.4/site-packages/qutebrowser/html/log.html
./.tox/py34/lib/python3.4/site-packages/qutebrowser/html/pre.html
./.tox/py34/lib/python3.4/site-packages/qutebrowser/html/version.html
./tests/html/jsconfirm.html
./tests/html/jsprompt.html
./tests/html/jsalert_multiline.html
./tests/unit/javascript/base.html
./tests/unit/javascript/position_caret/simple.html
./tests/unit/javascript/position_caret/scrolled_down_img.html
./tests/unit/javascript/position_caret/scrolled_down.html
./tests/unit/javascript/position_caret/invisible.html
./tests/unit/browser/test_webelem_jsescape.html
./qutebrowser/javascript/position_caret.js
./qutebrowser/html/error.html
./qutebrowser/html/dirbrowser.html
./qutebrowser/html/COPYING.html
./qutebrowser/html/base.html
./qutebrowser/html/settings.html
./qutebrowser/html/log.html
./qutebrowser/html/pre.html
./qutebrowser/html/version.html |
It's mainly the stuff in |
Alright, so this would be in a new test file and I could use the jinja_test for reference on rendering to test? |
I don't think the jinja tests help much here - you'd have a custom How are you planning to do the validation though? |
I was going to look into using py_w3c |
This uses the network unfortunately, but I think it's the best solution - maybe you could take a look at the other solutions in my original post as well? It'd be nice to have something to run offline automated, and then the W3C validator e.g. manually |
irc snippet for posterity
|
Some links about running the W3C validator on Travis: https://validator.github.io/validator/ |
The HTML/CSS/... shipped with qutebrowser should be validated by rendering it (either a minimal version via
utils.jinja
or by calling the real code) and then be validated.I can think of various methods to do so:
lxml.etree
:The text was updated successfully, but these errors were encountered: