Skip to content

Add checking by html5validator #109

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

Closed
php-coder opened this issue Jul 22, 2015 · 1 comment
Closed

Add checking by html5validator #109

php-coder opened this issue Jul 22, 2015 · 1 comment
Assignees
Milestone

Comments

@php-coder
Copy link
Owner

We need checking our html templates with html5validator tool. At least in TravisCI.

@see https://github.com/svenkreiss/html5validator

@php-coder php-coder modified the milestones: 0.5, 0.4 Jul 22, 2015
@php-coder php-coder self-assigned this Jul 22, 2015
@php-coder php-coder modified the milestones: 0.5, 0.4 Jul 22, 2015
@php-coder php-coder removed the ready label Jul 24, 2015
@php-coder
Copy link
Owner Author

$ html5validator --root src/main/webapp/WEB-INF/views --show-warnings --ignore 'Attribute “(th|sec|togglz|xmlns):[a-z]+” not allowed' 'Attribute “(th|sec|togglz):[a-z]+” is not serializable' 'Attribute with the local name “xmlns:[a-z]+” is not serializable'; echo rc=$?
WARNING:html5validator.validator:"file:/home/coder/mystamps/src/main/webapp/WEB-INF/views/series/info.html":104.145-104.145: error: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.
"file:/home/coder/mystamps/src/main/webapp/WEB-INF/views/series/add.html":127.35-127.35: error: Element “option” without attribute “label” must not be empty.
"file:/home/coder/mystamps/src/main/webapp/WEB-INF/views/series/add.html":149.35-149.35: error: Element “option” without attribute “label” must not be empty.
"file:/home/coder/mystamps/src/main/webapp/WEB-INF/views/category/info.html":15.124-15.124: error: Bad value “” for attribute “href” on element “link”: Must be non-empty.
"file:/home/coder/mystamps/src/main/webapp/WEB-INF/views/category/add.html":105.57-105.57: error: Attribute “path” not allowed on element “label” at this point.
"file:/home/coder/mystamps/src/main/webapp/WEB-INF/views/category/add.html":118.59-118.59: error: Attribute “path” not allowed on element “label” at this point.
"file:/home/coder/mystamps/src/main/webapp/WEB-INF/views/country/info.html":15.121-15.121: error: Bad value “” for attribute “href” on element “link”: Must be non-empty.
"file:/home/coder/mystamps/src/main/webapp/WEB-INF/views/country/add.html":105.57-105.57: error: Attribute “path” not allowed on element “label” at this point.
"file:/home/coder/mystamps/src/main/webapp/WEB-INF/views/country/add.html":118.59-118.59: error: Attribute “path” not allowed on element “label” at this point.
rc=9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant