WP_HTML_Open_Elements::pop_until( string $tag_name ): bool

Pops nodes off of the stack of open elements until one with the given tag name has been popped.

Description

See also

Parameters

$tag_namestringrequired
Name of tag that needs to be popped off of the stack of open elements.

Return

bool Whether a tag of the given name was found and popped off of the stack of open elements.

Source

 */
public function has_element_in_select_scope( $tag_name ) {
	throw new WP_HTML_Unsupported_Exception( 'Cannot process elements depending on select scope.' );

	return false; // The linter requires this unreachable code until the function is implemented and can return.
}

/**
 * Returns whether a P is in BUTTON scope.
 *
 * @since 6.4.0
 *
 * @see https://html.spec.whatwg.org/#has-an-element-in-button-scope
 *
 * @return bool Whether a P is in BUTTON scope.
 */
public function has_p_in_button_scope() {
	return $this->has_p_in_button_scope;

Changelog

VersionDescription
6.4.0Introduced.

User Contributed Notes

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