Skip to content

Commit

Permalink
Fix implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jan 2, 2023
1 parent ca06c64 commit 2dbf838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/experimental/html/class-wp-html-tag-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ public function get_attribute( $name ) {
* @return array|null List of attribute names, or `null` if not at a tag.
*/
function get_attribute_names() {
if ( null === $this->tag_name_starts_at ) {
if ( $this->is_closing_tag || null === $this->tag_name_starts_at ) {
return null;
}

Expand Down

1 comment on commit 2dbf838

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3823197049
📝 Reported issues:

Please sign in to comment.