Index: tests/phpunit/tests/theme/support.php
===================================================================
--- tests/phpunit/tests/theme/support.php	(revision 25182)
+++ tests/phpunit/tests/theme/support.php	(working copy)
@@ -78,6 +78,47 @@
 
 	}
 
+	/**
+	 * @ticket 24932
+	 */
+	function test_supports_html5() {
+		remove_theme_support( 'html5' );
+		$this->assertFalse( current_theme_supports( 'html5' ) );
+		$this->assertFalse( current_theme_supports( 'html5', 'comment-form' ) );
+		$this->assertFalse( add_theme_support( 'html5' ) );
+		$this->assertFalse( current_theme_supports( 'html5' ) );
+		$this->assertFalse( current_theme_supports( 'html5', 'comment-form' ) );
+	}
+
+	/**
+	 * @ticket 24932
+	 */
+	function test_supports_html5_subset() {
+		remove_theme_support( 'html5' );
+		$this->assertFalse( current_theme_supports( 'html5' ) );
+		$this->assertFalse( current_theme_supports( 'html5', 'comment-form' ) );
+		$this->assertFalse( add_theme_support( 'html5', 'comment-form' ) );
+		$this->assertNotSame( false, add_theme_support( 'html5', array( 'comment-form' ) ) );
+		$this->assertTrue( current_theme_supports( 'html5', 'comment-form' ) );
+
+		// This will return true, which might help a plugin author decide what markup to serve,
+		// but core should never check for it.
+		$this->assertTrue( current_theme_supports( 'html5' ) );
+
+		// It appends, rather than replaces.
+		$this->assertFalse( current_theme_supports( 'html5', 'comments-list' ) );
+		$this->assertNotSame( false, add_theme_support( 'html5', array( 'comments-list' ) ) );
+		$this->assertTrue( current_theme_supports( 'html5', 'comment-form' ) );
+		$this->assertTrue( current_theme_supports( 'html5', 'comments-list' ) );
+		$this->assertFalse( current_theme_supports( 'html5', 'search-form' ) );
+
+		// Removal is all or nothing.
+		$this->assertTrue( remove_theme_support( 'html5' ) );
+		$this->assertFalse( current_theme_supports( 'html5', 'comments-list' ) );
+		$this->assertFalse( current_theme_supports( 'html5', 'comments-form' ) );
+		$this->assertFalse( current_theme_supports( 'html5', 'search-form' ) );
+	}
+
 	function supports_foobar( $yesno, $args, $feature ) {
 		if ( $args[0] == $feature[0] )
 			return true;
Index: src/wp-includes/theme.php
===================================================================
--- src/wp-includes/theme.php	(revision 25187)
+++ src/wp-includes/theme.php	(working copy)
@@ -1271,6 +1271,16 @@
 				$args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs() ) );
 			break;
 
+		case 'html5' :
+			// You can't just pass 'html5', you need to pass an array of types.
+			if ( ! is_array( $args[0] ) )
+				return false;
+
+			// Calling 'html5' again merges, rather than overwrites.
+			if ( isset( $_wp_theme_features['html5'] ) )
+				$args[0] = array_merge( $_wp_theme_features['html5'][0], $args[0] );
+			break;
+
 		case 'custom-header-uploads' :
 			return add_theme_support( 'custom-header', array( 'uploads' => true ) );
 			break;
@@ -1554,11 +1564,15 @@
 			return in_array( $content_type, $_wp_theme_features[$feature][0] );
 			break;
 
+		case 'html5':
 		case 'post-formats':
 			// specific post formats can be registered by passing an array of types to
 			// add_theme_support()
-			$post_format = $args[0];
-			return in_array( $post_format, $_wp_theme_features[$feature][0] );
+
+			// Specific areas of HTML5 support *must* be passed via an array to add_theme_support()
+
+			$type = $args[0];
+			return in_array( $type, $_wp_theme_features[$feature][0] );
 			break;
 
 		case 'custom-header':
