Issue #2336965 by cilefen: Move the XHTML inline comment in template_preprocess_rdf_metadata to the template file.

8.0.x
Alex Pott 2014-09-13 15:26:48 +01:00
parent 5de9e40727
commit c67e5198a6
2 changed files with 5 additions and 5 deletions

View File

@ -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);
}

View File

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