diff options
-rw-r--r-- | CHANGELOG.txt | 2 | ||||
-rw-r--r-- | modules/rdf/rdf.module | 4 |
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 |