WP_HTML_Unsupported_Exception::__construct
Constructor function.
Method of the class: WP_HTML_Unsupported_Exception{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_HTML_Unsupported_Exception = new WP_HTML_Unsupported_Exception(); $WP_HTML_Unsupported_Exception->__construct( $message, $token_name, $token_at, $token, $stack_of_open_elements, $active_formatting_elements );
- $message(string) (required)
- Brief message explaining what is unsupported, the reason this exception was raised.
- $token_name(string) (required)
- Normalized name of matched token when this exception was raised.
- $token_at(int) (required)
- Number of bytes into source HTML document where matched token starts.
- $token(string) (required)
- Full raw text of matched token when this exception was raised.
- $stack_of_open_elements(string[]) (required)
- Stack of open elements when this exception was raised.
- $active_formatting_elements(string[]) (required)
- List of active formatting elements when this exception was raised.
Changelog
| Since 6.7.0 | Introduced. |
WP_HTML_Unsupported_Exception::__construct() WP HTML Unsupported Exception:: construct code WP 6.9.1
public function __construct( string $message, string $token_name, int $token_at, string $token, array $stack_of_open_elements, array $active_formatting_elements ) {
parent::__construct( $message );
$this->token_name = $token_name;
$this->token_at = $token_at;
$this->token = $token;
$this->stack_of_open_elements = $stack_of_open_elements;
$this->active_formatting_elements = $active_formatting_elements;
}