[yast-devel] Webyast - html validation testing
Hi, I look at html validation. After searching through google I found that is used 2 validators, often together w3c and tidy by bindings. w3c ----- Often used as remote server validation. It is not possible for our test server and also build service doesn't allow that communication to internet. W3c validator is open source and it is packed also in suse. But its local settings is hard to do automatic and need also some webserver that runs it. And I think this is not acceptable as it could take non-trivial time to run it and as it should run also during building each plugin it could take serious amoung of time. tidy ----- Tidy is binary library and executable. All modules that I find on internet use ruby bindings and each complain about its implementation, stability and bugs. Also it is not packaged in suse repository. I try another way and use cli tool to validate it and parse its output. You can find result of my work in git and now it is used language module Welcome any comments language output:
2) Failure: test_access_without_write_permissions(LanguageControllerTest) [test/validation_assert.rb:18:in `assert_valid_markup' /test/functional/language_controller_test.rb:120:in `test_access_without_write_permissions']: Find validation problems: line 28 column 7 - Warning: <img> element not empty or not closed line 53 column 1 - Warning: <br> element not empty or not closed line 88 column 4 - Warning: <br> element not empty or not closed line 89 column 4 - Warning: <br> element not empty or not closed line 55 column 196 - Warning: <table> lacks "summary" attribute Info: Doctype given is "-//W3C//DTD XHTML 1.0 Strict//EN" Info: Document content looks like HTML Proprietary 5 warnings, 0 errors were found!
The table summary attribute should be used to describe the table structure. It is very helpful for people using non-visual browsers. The scope and headers attributes for table cells are useful for specifying which headers apply to each table cell, enabling non-visual browsers to provide a meaningful context for each cell.
For further advice on how to make your pages accessible see http://www.w3.org/WAI/GL. You may also want to try "http://www.cast.org/bobby/" which is a free Web-based service for checking URLs for accessibility.
To learn more about HTML Tidy see http://tidy.sourceforge.net Please send bug reports to html-tidy@w3.org HTML and CSS specifications are available from http://www.w3.org/ Lobby your company to join W3C, see http://www.w3.org/Consortium . <false> is not true.
what is changed in controller test: require File.expand_path( File.join("test","validation_assert"), RailsParent.parent ) #that inject new method to ancestor of test and to test where you want test response: assert_valid_markup -- Josef Reidinger YaST team maintainer of perl-Bootloader, YaST2-Repair, webyast modules language and time -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (1)
-
Josef Reidinger