Commit 675f72fa authored by alexpott's avatar alexpott
Browse files

Issue #2301955 by er.pushpinderrana, lokapujya | scor: Ensure RDFa metadata tags are hidden.

parent 2eac903a
...@@ -567,9 +567,9 @@ function rdf_preprocess_image(&$variables) { ...@@ -567,9 +567,9 @@ function rdf_preprocess_image(&$variables) {
function template_preprocess_rdf_metadata(&$variables) { function template_preprocess_rdf_metadata(&$variables) {
foreach ($variables['metadata'] as $key => $attributes) { foreach ($variables['metadata'] as $key => $attributes) {
// Add a class so that developers viewing the HTML source can see why there // Add a class so that developers viewing the HTML source can see why there
// are empty <span> tags in the document. The class can also be used to set // are empty <span> tags in the document.
// a CSS display:none rule in a theme where empty spans affect display.
$attributes['class'][] = 'rdf-meta'; $attributes['class'][] = 'rdf-meta';
$attributes['class'][] = 'hidden';
// The XHTML+RDFa doctype allows either <span></span> or <span /> syntax to // The XHTML+RDFa doctype allows either <span></span> or <span /> syntax to
// be used, but for maximum browser compatibility, W3C recommends the // be used, but for maximum browser compatibility, W3C recommends the
// former when serving pages using the text/html media type, see // former when serving pages using the text/html media type, see
......
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