Validation & Me

March 11th, 2009

Last week I read a post on Coding Horror on HTML Validation. It discussed if HTML validation really matters and if there are any benefits to it. This prompted me to try to see how this site validated. I created this theme based on the Kubrick theme, so I was curious how it would validate, and if the problems were a result of the Kubrick theme or my own code.

After correcting a few minor errors, I was able to get the main page of this blog to validate at XHTML Transitional, and even at XHTML strict. When I looked at the individual post pages, I saw that I was consistently getting one error on every single post.

there is no attribute “aria-required”.

After a few google searches, I found that aria-required is an accessibility feature for screen readers. It alerts the screen reader to let the user know that a field is required. It’s just not a feature that validates thru W3C. So, my choice is validation or accessibility?

I decided to go with accessibility, since that could make a difference for a real individual. I don’t think anyone will judge this site on it’s 1 error in XHTML Transitional.

One Response to “Validation & Me”

  1. Could you wrap your form in a CDATA?

    –dan

    <![CDATA[

    Name (required)

    Mail (will not be published) (required)

    Website

    <!--XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> -->

    Notify me of followup comments via e-mail

    ]]>

Leave a Reply