Returns whether a particular element is in select scope.
Description
This test differs from the others like it, in that its rules are inverted.Instead of arriving at a match when one of any tag in a termination group is reached, this one terminates if any other tag is reached. <blockquote> 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: <ul> <li>optgroup in the HTML namespace</li> <li>option in the HTML namespace</li> </ul> </blockquote>
Parameters
$tag_namestring
Name of tag to check.
Return
bool
Whether the given element is in SELECT scope.
Uses · 1
WP_HTML_Open_Elements::walk_up()Steps through the stack of open elements, starting with the bottom element (added last) and walking upwards to the one added first.
Signature, return type and hooks compared across 5 parsed releases.
6.7.0
Full implementation.from the docblock
6.4.0
Stub implementation (throws).from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/html-api/class-wp-html-open-elements.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.