Mailinglist Archive: yast-devel (152 mails)

< Previous Next >
[yast-devel] Webyast - html validation testing
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Mon, 13 Jul 2009 13:49:26 +0200
  • Message-id: <4A5B1F46.70304@xxxxxxx>
I look at html validation. After searching through google I found that
is used 2 validators, often together w3c and tidy by bindings.

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 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/validation_assert.rb:18:in `assert_valid_markup'
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 You may also want to try
""; which is a free Web-based
service for checking URLs for accessibility.

To learn more about HTML Tidy see
Please send bug reports to html-tidy@xxxxxx
HTML and CSS specifications are available from
Lobby your company to join W3C, see
<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:

Josef Reidinger
YaST team
maintainer of perl-Bootloader, YaST2-Repair, webyast modules language
and time

To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages