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

	'html' !== $this->parsing_namespace ||
	1 !== strspn( $this->html, 'iIlLnNpPsStTxX', $this->tag_name_starts_at, 1 )
) {

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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