Skip to content

Commit e677f56

Browse files
committed
HTML API: Lower-case HTML tag names in get_qualified_tag_name().
Since this method is meant for printing and display, a more expected return value would be the lower-case variant of a given HTML tag name. This patch changes the behavior accordingly.
1 parent f7d9b1b commit e677f56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/html-api/class-wp-html-tag-processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2840,7 +2840,7 @@ public function get_qualified_tag_name(): ?string {
28402840
}
28412841

28422842
if ( 'html' === $this->get_namespace() ) {
2843-
return $tag_name;
2843+
return strtolower( $tag_name );
28442844
}
28452845

28462846
$lower_tag_name = strtolower( $tag_name );

0 commit comments

Comments
 (0)