Skip to content

Commit 37feefd

Browse files
committed
Return empty array getting attributes on </br>
1 parent dd041de commit 37feefd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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
@@ -2828,7 +2828,7 @@ public function get_attribute( $name ) {
28282828
public function get_attribute_names_with_prefix( $prefix ): ?array {
28292829
if (
28302830
self::STATE_MATCHED_TAG !== $this->parser_state ||
2831-
$this->is_closing_tag
2831+
$this->is_tag_closer()
28322832
) {
28332833
return null;
28342834
}

0 commit comments

Comments
 (0)