WP_HTML_Open_Elements::has_element_in_select_scope │ public │ WP 6.4.0

Deprecated since 7.1.0 This method is no longer part of the HTML standard.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Returns whether a particular element is in select scope.

The "select scope" concept was removed from the HTML standard along with the customizable <select> changes, so nothing is ever in select scope.

The stack of open elements is said to have a particular element in select scope when it has > that element in the specific scope consisting of all element types except the following: > - optgroup in the HTML namespace > - option in the HTML namespace

Method of the class: WP_HTML_Open_Elements{}

No Hooks.

Returns

bool. Always false; select scope no longer exists.

Usage

$WP_HTML_Open_Elements = new WP_HTML_Open_Elements();
$WP_HTML_Open_Elements->has_element_in_select_scope( $tag_name ): bool;
$tag_name(string) (required)
Name of tag to check.

Changelog

Since 6.4.0 Introduced.
Since 6.4.0 Stub implementation (throws).
Since 6.7.0 Full implementation.
Deprecated since 7.1.0 This method is no longer part of the HTML standard.

WP_HTML_Open_Elements::has_element_in_select_scope() code WP 7.1.2

public function has_element_in_select_scope( string $tag_name ): bool {
	_deprecated_function( __METHOD__, '7.1.0' );

	return false;
}