Returns whether a particular element is in list item scope.
Description
See also
Parameters
$tag_name
stringrequired- Name of tag to check.
Source
/**
* Returns the node at the end of the stack of open elements,
* if one exists. If the stack is empty, returns null.
*
* @since 6.4.0
*
* @return WP_HTML_Token|null Last node in the stack of open elements, if one exists, otherwise null.
*/
public function current_node(): ?WP_HTML_Token {
$current_node = end( $this->stack );
User Contributed Notes
You must log in before being able to contribute a note or feedback.