WP_HTML_Open_Elements::has_element_in_select_scope │ public │ WP 6.4.0

Устарела с версии 7.1.0 This method is no longer part of the HTML standard.. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

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

Метод класса: WP_HTML_Open_Elements{}

Хуков нет.

Возвращает

bool. Always false; select scope no longer exists.

Использование

$WP_HTML_Open_Elements = new WP_HTML_Open_Elements();
$WP_HTML_Open_Elements->has_element_in_select_scope( $tag_name ): bool;
$tag_name(строка) (обязательный)
Name of tag to check.

Список изменений

С версии 6.4.0 Введена.
С версии 6.4.0 Stub implementation (throws).
С версии 6.7.0 Full implementation.
Устарела с 7.1.0 This method is no longer part of the HTML standard.

Код WP_HTML_Open_Elements::has_element_in_select_scope() WP 7.1.3

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

	return false;
}