Returns the node name represented by the token.
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:
html for DOCTYPE declarations.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.
* > A start tag whose tag name is "html"
*/
case '+HTML':
return $this->step_in_body();
| Version | Description |
|---|---|
| 6.6.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_html_processor/get_token_name