WP_HTML_Open_Elements::has_element_in_list_item_scope( string $tag_name ): bool

Returns whether a particular element is in list item scope.

Description

See also

Parameters

$tag_namestringrequired
Name of tag to check.

Return

bool Whether given element is in scope.

Source

	switch ( $node->node_name ) {
		case 'HTML':
			return false;
	}

	if ( in_array( $node->node_name, $termination_list, true ) ) {
		return false;
	}
}

Changelog

VersionDescription
6.5.0Implemented: no longer throws on every invocation.
6.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.