RDFa DTD question

Discussion about HTML and XHTML related issues.
Post Reply
User avatar
MikeGale
Rank VI - Professional
Rank VI - Professional
Posts: 711
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

RDFa DTD question

Post by MikeGale » Tue May 21, 2013 5:33 pm

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

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3440
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: RDFa DTD question

Post by Albert Wiersch » Tue May 21, 2013 8:20 pm

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!
Image
Albert Wiersch

Post Reply