RDFa 1.1 was published last month and requires namespaces to be serialized in a prefix attribute. The profile attribute is also obsolete. patch forthcoming.
This effectively backports the RDFa changes which happened in Drupal 8 at #1077566: Convert html.tpl.php to HTML5.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1674246-html-rdf-output-5-1.patch | 1.27 KB | acbramley |
| #1 | 1674246_1_zen_rdfa11.patch | 1.23 KB | scor |
Comments
Comment #1
scor commentedThis patch changes the way the namespace prefixes are serialized in HTML. xmlns is not longer used, the new
prefixattribute is used instead. The profile attribute also deprecated and removed from html.tpl.php.Comment #2
johnalbinThanks for the patch, Scor! But I'm not a big fan of rerunning the
module_invoke_all('rdf_namespaces');from within rdf_get_namespaces(); template_preprocess_html() already runs that once.It seems to me it would be faster to run some native-PHP string manipulations on $rdf_namespaces then it would be to call several functions for the hook invoke.
I've committed this change: http://drupalcode.org/project/zen.git/commitdiff/34afaf5
Let me know if you think this is the wrong approach, scor. I've given you a commit credit since I just modified your patch. :-)
Comment #3
scor commentedThanks John! That works and you're refactoring is indeed slightly faster.
Comment #5
acbramley commentedRolled a patch against 5.1 based on the commit diff
Comment #5.0
acbramley commentedadd note about D8 backport