Skip to content
Snippets Groups Projects
Commit 675f72fa authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 2eac903a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -567,9 +567,9 @@ function rdf_preprocess_image(&$variables) {
function template_preprocess_rdf_metadata(&$variables) {
foreach ($variables['metadata'] as $key => $attributes) {
// 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
// a CSS display:none rule in a theme where empty spans affect display.
// are empty <span> tags in the document.
$attributes['class'][] = 'rdf-meta';
$attributes['class'][] = 'hidden';
// 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment