WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Can HTML tagged content conform to WCAG 2.0 without <body>, etc?

for

From: Patrick H. Lauke
Date: Apr 21, 2015 1:09PM


On 21/04/2015 19:43, Steve Faulkner wrote:
> the wording of the criteria makes reference to
> 'specifications'. There is no way to determine if a tag is complete or is
> nested correctly or requires an end tag without reference to a
> specification. In HTML the way the specification used is identified is via
> the doctype.

Also not forgetting the MIME type that a resource is sent as...so, even
in absence of a <!DOCTYPE>, having something sent as text/html is
usually enough to make the browser interpret it as HTML. Plus, most
(all?) browsers will, as a last resort, do some basic pattern matching
("does it end in .htm or .html?").

Getting back to the original question, I'd say that a document doesn't
necessarily have to validate, but follow general "well-formedness" (if
you pardon me borrowing from XML here), for the most part.

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke