summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2014-11-01 12:42:04 -0400
committerDavid Rothstein <drothstein@gmail.com>2014-11-01 12:42:04 -0400
commitfa2e36b863eecea32852d3a7f374680736c87732 (patch)
tree381feee77305b84220d839230a4e431a0d7b703b
parent5f380f922531255efe95ee443606379dcac2fc9e (diff)
downloadbrdo-fa2e36b863eecea32852d3a7f374680736c87732.tar.gz
brdo-fa2e36b863eecea32852d3a7f374680736c87732.tar.bz2
Issue #2301955 by er.pushpinderrana, lokapujya | scor: Ensure RDFa metadata tags are hidden.
-rw-r--r--CHANGELOG.txt2
-rw-r--r--modules/rdf/rdf.module4
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index f0e9535c7..0192d72d9 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,6 +1,8 @@
Drupal 7.33, xxxx-xx-xx (development version)
-----------------------
+- Added an HTML class to RDFa metatags throughout Drupal to prevent them from
+ accidentally affecting the site appearance (minor markup change).
- Fixed a bug in the Unicode requirements check which prevented installing
Drupal on PHP 5.6.
- Fixed a bug which caused drupal_get_bootstrap_phase() to abort the bootstrap
diff --git a/modules/rdf/rdf.module b/modules/rdf/rdf.module
index 877b598cd..e126d9c2c 100644
--- a/modules/rdf/rdf.module
+++ b/modules/rdf/rdf.module
@@ -865,9 +865,9 @@ function theme_rdf_metadata($variables) {
$output = '';
foreach ($variables['metadata'] as $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'][] = 'element-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