We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c29f5d6 commit a50e262Copy full SHA for a50e262
src/wp-includes/html-api/class-wp-html-tag-processor.php
@@ -1126,6 +1126,7 @@ public function paused_at_incomplete_token(): bool {
1126
* // Outputs: "free <egg> lang-en "
1127
*
1128
* @since 6.4.0
1129
+ * @since 6.7.0 Class names are no longer force lower-cased.
1130
*/
1131
public function class_list() {
1132
if ( self::STATE_MATCHED_TAG !== $this->parser_state ) {
@@ -1155,12 +1156,7 @@ public function class_list() {
1155
1156
return;
1157
}
1158
- /*
1159
- * CSS class names are case-insensitive in the ASCII range.
1160
- *
1161
- * @see https://www.w3.org/TR/CSS2/syndata.html#x1
1162
- */
1163
- $name = strtolower( substr( $class, $at, $length ) );
+ $name = substr( $class, $at, $length );
1164
$at += $length;
1165
1166
/*
0 commit comments