This matches the DOM API value nodeName. Some values are static, such as #text for a text node, while others are dynamically generated from the token itself. Dynamic names: <ul> <li>Uppercase tag name for tag matches.</li> <li>html for DOCTYPE declarations.</li> </ul> Note that if the Tag Processor is not matched on a token then this function will return null, either because it hasn't yet found a token or because it reached the end of the document without matching a token.
Return
string|null
Name of the matched token.
Uses · 2
WP_HTML_Processor::is_virtual()Indicates if the currently-matched token is virtual, created by a stack operation while processing HTML, rather than a token found in the HTML text itself.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 6.8.8 tag, from src/wp-includes/html-api/class-wp-html-processor.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.