W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2013

Re: HTML Validation Tools

From: Patrick H. Lauke <redux@splintered.co.uk>
Date: Wed, 17 Jul 2013 12:38:26 +0100
Message-ID: <51E68232.6090303@splintered.co.uk>
To: w3c-wai-ig@w3.org
On 17/07/2013 12:02, Homme, James wrote:
> Hi,
> I interpret guideline 4.1.1 as requiring clean HTML. Does anyone know of
> a validation tool that we can use that does not link out to the Internet
> to do its checking?

One option is to use validator.w3.org but, rather than pointing it to a 
URL (which I gather you can't do, perhaps because your pages are not 
live or behind some login/intranet), grab the page's source from within 
your browser and paste it in the "direct input" text field.

> Related to this, I would think that the tool would
> need to examine the HTML after it gets rendered in the browser, because
> many pages are likely to have some of their HTML generated by scripts.

For this, you could take the same approach as above, but instead of 
"View Source" (which just shows you what was sent from the server), use 
a dev tool (e.g. Firebug, Chrome DevTools, etc) and - once the page has 
finished loading/generating assets via scripts - grab the current DOM 
from within that as text and paste it into the direct input bit.

Note that, arguably, not every validation error or warning actually 
results in an accessibility issue. An unescaped ampersand or an unclosed 
element, for instance, never did any major harm...but things like 
duplicate ID attributes can have more serious impacts (not just on a11y, 
but in general...unexpected CSS or JS interaction could result).

Patrick H. Lauke
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]

www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com | http://flickr.com/photos/redux/
twitter: @patrick_h_lauke | skype: patrick_h_lauke
Received on Wednesday, 17 July 2013 11:39:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:36:45 UTC