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.

CommentFileSizeAuthor
#2 1036406-ab-1.patch737 bytesalanburke

Comments

tim.plunkett’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev
alanburke’s picture

Status: Active » Needs review
StatusFileSize
new737 bytes

So here's a start.
We strip out the XHTML stuff from the doctype declaration.

Anonymous’s picture

Status: Needs review » Needs work

I 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).

alanburke’s picture

Status: Needs work » Needs review

Wrong issue.

Anonymous’s picture

Status: Needs review » Needs work

This one is going to stay open until the DOCTYPE is finalized.

jensimmons’s picture

Title: DOCTYPE for RDFa » Keep an eye on the spec: HTML5 DOCTYPE for RDFa

The 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.

jensimmons’s picture

Status: Needs work » Fixed

Looks like <!doctype html> is fine. <!DOCTYPE html> too. So I'm closing this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.