Issue #2336965 by cilefen: Move the XHTML inline comment in template_preprocess_rdf_metadata to the template file.
parent
5de9e40727
commit
c67e5198a6
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue