A question came up about the DOCTYPE that is needed for HTML5 + RDFa. I'm pretty sure that you only have to use the regular HTML5 DOCTYPE, but I can ask the folks working on the spec.
The HTML5+RDFa Editor's Draft from 2009 said:
There should be a DOCTYPE declaration specified prior to the root element in the document that follows the conventions outlined in the "The DOCTYPE section" of the HTML5 specification.
This item may be removed once this document is integrated with the HTML5 specification. It is currently included for the purposes of clarifying the full set of Document Conformance requirements for an HTML5+RDFa document.
I believe it is referring to the section here: http://www.w3.org/TR/2011/WD-html5-diff-20110113/#doctype
The only reference to DOCTYPEs in the HTML+RDFa 1.1 spec is for HTML 4.
So my reading is that you can just use the HTML5 doctype. I'll post here once I have that verified.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1036406-ab-1.patch | 737 bytes | alanburke |
Comments
Comment #1
tim.plunkettComment #2
alanburke commentedSo here's a start.
We strip out the XHTML stuff from the doctype declaration.
Comment #3
Anonymous (not verified) commentedI see that some of this discussion has happened already.
http://drupal.org/node/1000308
http://drupal.org/node/963832
Since that discussion, RDFa 1.1 Core has gone into Last Comments and received last comments from Ian Hickson. As scor says in that discussion, RDFa 1.1 should be finalized in time for Drupal 8 (unless Drupal 8 dev is SUPER speedy).
Comment #4
alanburke commentedWrong issue.
Comment #5
Anonymous (not verified) commentedThis one is going to stay open until the DOCTYPE is finalized.
Comment #6
jensimmons commentedThe html.tpl.php file has been changed in another issue #1036452: HTML5ify html.tpl.php [Doctype].
This issue is just for keeping an eye on whether or not the current understanding of the HTML5 + RDFA 1.1 doctype changes.
Comment #7
jensimmons commentedLooks like
<!doctype html>is fine.<!DOCTYPE html>too. So I'm closing this.