diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/HTMLAttributesTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/HTMLAttributesTest.php
new file mode 100644
index 0000000..58fa38b
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Tests/Theme/HTMLAttributesTest.php
@@ -0,0 +1,44 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\system\Tests\Theme\HtmlAttributesTest.
+ */
+
+namespace Drupal\system\Tests\Theme;
+
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Functional test for empty class attributes.
+ */
+class HtmlAttributesTest extends WebTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = array('theme_test');
+
+  public static function getInfo() {
+    return array(
+      'name' => 'HTML attributes',
+      'description' => 'Tests for empty class attributes',
+      'group' => 'Theme',
+    );
+  }
+
+  /**
+   * Creates a node and looks for an empty class attribute. IE. class=""
+   */
+  function testEmptyAttributes() {
+    // Create a node to view.
+    $node = $this->drupalCreateNode();
+    $this->assertTrue(node_load($node->nid), t('Node created.'));
+
+    // Look for empty attributes
+    $this->drupalGet("node/$node->nid");
+    $this->assertNoRaw('class=""', t('Find empty class attribute.'));
+  }
+}
