[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/html-api/ -> class-wp-html-token.php (summary)

HTML API: WP_HTML_Token class

File Size: 106 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_HTML_Token:: (3 methods):
  __construct()
  __destruct()
  __wakeup()


Class: WP_HTML_Token  - X-Ref

Core class used by the HTML processor during HTML parsing
for referring to tokens in the input HTML string.

This class is designed for internal use by the HTML processor.

__construct( $bookmark_name, $node_name, $has_self_closing_flag, $on_destroy = null )   X-Ref
Constructor - creates a reference to a token in some external HTML string.

param: string   $bookmark_name         Name of bookmark corresponding to location in HTML where token is found.
param: string   $node_name             Name of node token represents; if uppercase, an HTML element; if lowercase, a special value like "marker".
param: bool     $has_self_closing_flag Whether the source token contains the self-closing flag, regardless of whether it's valid.
param: callable $on_destroy            Function to call when destroying token, useful for releasing the bookmark.

__destruct()   X-Ref
Destructor.


__wakeup()   X-Ref
Wakeup magic method.




Generated : Sun Apr 28 08:20:02 2024 Cross-referenced by PHPXref