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

* >   - th
* >   - marquee
* >   - object
* >   - template
* >   - MathML mi
* >   - MathML mo
* >   - MathML mn
* >   - MathML ms
* >   - MathML mtext
* >   - MathML annotation-xml
* >   - SVG foreignObject
* >   - SVG desc
* >   - SVG title
*
* @since 6.4.0
* @since 6.7.0 Full support.
*
* @see https://html.spec.whatwg.org/#has-an-element-in-scope

Changelog

VersionDescription
6.4.0Introduced.

User Contributed Notes

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