Commit c67e5198 authored by alexpott's avatar alexpott

Issue #2336965 by cilefen: Move the XHTML inline comment in...

Issue #2336965 by cilefen: Move the XHTML inline comment in template_preprocess_rdf_metadata to the template file.
parent 5de9e407
......@@ -567,11 +567,6 @@ function rdf_preprocess_image(&$variables) {
*/
function template_preprocess_rdf_metadata(&$variables) {
foreach ($variables['metadata'] as $key => $attributes) {
// The XHTML+RDFa doctype allows either <span></span> or <span /> syntax to
// be used, but for maximum browser compatibility, W3C recommends the
// former when serving pages using the text/html media type, see
// http://www.w3.org/TR/xhtml1/#C_3.
if (!is_null($attributes)) {
$variables['metadata'][$key] = new Attribute($attributes);
}
......
......@@ -3,6 +3,11 @@
* @file
* Default theme implementation for empty spans with RDF attributes.
*
* The XHTML+RDFa doctype allows either <span></span> or <span /> syntax to
* be used, but for maximum browser compatibility, W3C recommends the
* former when serving pages using the text/html media type, see
* http://www.w3.org/TR/xhtml1/#C_3.
*
* Available variables:
* - metadata: Each item within corresponds to its own set of attributes,
* and therefore, needs its own 'attributes' element.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment