Validation: HTML5, RDFa & WAI-ARIA

Events happening in the community are now at Drupal community events on www.drupal.org.
mgifford's picture

I want to validate a site built with Drupal 7 (with RDFa enabled), using a Genesis's HTML5 sub-theme & with lots of WAI-ARIA added for accessibility.

Looks like with - http://validator.nu - we can do HTML5 & ARIA.

But really not sure how to also evaluate for the RDFa as well.

The W3C doesn't seem to like it either although it can to XHTML & RDFA apparently - http://validator.w3.org

Some guidance on validation would be appreciated. I have heard that someones is maintaining a custom schema for HTML5 & RDFA, but not sure how to use it.

Comments

I just ran into the same

BaskingShark's picture

I just ran into the same problem on Friday. I finally decided that the spirit of validation was better than the letter in this situation: adding RDFa improved accessibility and content discovery which are the goals of HTML5 and WAI-ARIA... even if the site will no longer fully validate.

I didn't look deeply enough into the matter to figure out if the problem is in the validator, the standard, or Drupal 7's implementation of RDFa. If it's Drupal, then we should think about extending the HTML5 Tools module or patching the RDF module. Anybody done any checking on what the actual conflicts are?

RDFa+HTML5 draft

sreynen's picture

I think there's no validation for RDFa and HTML5 because there's no standard yet on how they should work together, so nothing to validate against. There is a draft for how RDFa and HTML5 should work together here:

http://dev.w3.org/html5/rdfa/rdfa-module.html

Thanks!

mgifford's picture

Would be good to circulate the information so that we can all start using these validation tools again. Hopefully someone with influence with the W3C will suggest it's a good time to work on a draft copy now.

Drupal 7 is RDFa 1.0, but...

jacine's picture

A new (beta) RDFa 1.1 validator tool was released on 5/31 that could potentially help with this.

Announcement Post:
http://www.w3.org/QA/2011/05/rdfa_11_distiller_and_validato.html

Validator:
http://www.w3.org/2007/08/pyRdfa/Validator.html

This is validator is meant to validate RDFa 1.1 content in an HTML or an XML file. The validator does not analyze the HTML/XML content itself. It is advised to use, e.g., the separate HTML validator for that purpose.

Maybe it will come into Unicorn

Sorry, just saw this post. I

linclark.research's picture

Sorry, just saw this post. I asked a similar question on answers.semanticweb.com, here's the answer I got from one of the folks from the W3C: http://answers.semanticweb.com/questions/9792/whats-the-status-of-valida...

XHTML1 validation

liam morland's picture

ARIA can be validated with this build of XHTML1:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+ARIA 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-aria-1.dtd">

RDFa can be validated with this build of XHTML1:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

It shouldn't be difficult to create a combined DTD which allows both ARIA and RDFa.

Is there a general solution to importing modules without creating a custom DTD?

Accessibility

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: