validation - Validator.w3.org doesn't understand my HTML 4.01+RDFa -


i have following code in page head:

<!doctype html public "-//w3c//dtd html 4.01+rdfa 1.0//en" "http://www.w3.org/markup/dtd/html401-rdfa-1.dtd"> <html xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>"> <head> <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"> 

if try validate page validator.w3.org , automatic doctype detecting, 174 errors , doctype shown -//w3c//dtd html 4.01+rdfa 1.0//en. here validation result.

then if setting doctype manually html 4.01+rdfa 1.1 , revalidate page, doctype shown html 4.01 transitional, there 2 errors , 2 warnings: unable determine parse mode , doctype override in effect! validator seems not understand doctype , writes:

the detected doctype declaration >!doctype html public "-//w3c//dtd html 4.01+rdfa 1.0//en" "hxxp://www.w3.org/markup/dtd/html401-rdfa-1.dtd"< has been suppressed , doctype "html 4.01 + rdfa 1.1" inserted instead...

if setting validator show source code, see, validator has little bit code, the page has. validator changes first line of code

<!doctype ><!-- <!doctype html public "-//w3c//dtd html 4.01+rdfa 1.0//en" "http://www.w3.org/markup/dtd/html401-rdfa-1.dtd"> --> 

and comments right doctype out...`

would point me right doctype (or right syntax/workaround)?

is there reason why not using more mainstream rdfa doctype such as:

<!doctype html public "-//w3c//dtd xhtml+rdfa 1.1//en" "http://www.w3.org/markup/dtd/xhtml-rdfa-2.dtd">

or more simple html5 doctype:

<!doctype html>


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -