Page 1 of 1

RDFa DTD question

Posted: Tue May 21, 2013 5:33 pm
by MikeGale
Hi,

I just checked out a new web site design from a specialised news organisation. (Not my work.)

The content appears to be produced by Drupal.

The Doctype "fails" in CSE 12.11, with a warning.

What should it be?

Message given:
[65] This document's DOCTYPE is not a recognized DOCTYPE and may not be valid. Note that most DOCTYPEs are treated as being case-sensitive. The unrecognized DOCTYPE is: "<!DOCTYPE html PUBLIC "-//W3C//DTD HTML+RDFa 1.1//EN">". See the description of flag 65 in the documentation for more information and the list of recognized DOCTYPEs.
i.e. the Doctype used is <!DOCTYPE html PUBLIC "-//W3C//DTD HTML+RDFa 1.1//EN

The document is not declared as XHTML. (most online content refers to (X)HTML 5 to some degree, this may be an earlier version...)

Flag 65 notes mentions <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> (New 20100218) but no HTML version. (To my mind HTML, as opposed to XHTML, doesn't make much sense for RDFa...)

Re: RDFa DTD question

Posted: Tue May 21, 2013 8:20 pm
by Albert Wiersch
Hi Mike,

I believe the recommended DOCTYPE would be this:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
I've added some new RDFa DOCTYPEs to the recognized list for the next update of CSE HTML Validator. Thanks for bringing this to my attention!