WP_HTML_Tag_Processor::paused_at_incomplete_token(): bool

In this article

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.

Description

Example:

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

Return

bool Whether the parse paused at the start of an incomplete token.

Source

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

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.