WP_HTML_Tag_Processor::paused_at_incomplete_token()publicWP 6.5.0

Whether the processor paused because the input HTML document ended in the middle of a syntax element, such as in the middle of a tag.

Example:

$processor = new WP_HTML_Tag_Processor( '<input type="text" value="Th' );
false      === $processor->get_next_tag();
true       === $processor->paused_at_incomplete_token();

Method of the class: WP_HTML_Tag_Processor{}

No Hooks.

Return

true|false. Whether the parse paused at the start of an incomplete token.

Usage

$WP_HTML_Tag_Processor = new WP_HTML_Tag_Processor();
$WP_HTML_Tag_Processor->paused_at_incomplete_token();

Changelog

Since 6.5.0 Introduced.

WP_HTML_Tag_Processor::paused_at_incomplete_token() code WP 6.6.2

public function paused_at_incomplete_token() {
	return self::STATE_INCOMPLETE_INPUT === $this->parser_state;
}