You are here

protected function Tokenizer::parseError in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php \Masterminds\HTML5\Parser\Tokenizer::parseError()

Emit a parse error.

A parse error always returns false because it never consumes any characters.

17 calls to Tokenizer::parseError()
Tokenizer::attribute in vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php
Parse attributes from inside of a tag.
Tokenizer::attributeValue in vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php
Consume an attribute value. 8.2.4.37 and after.
Tokenizer::cdataSection in vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php
Handle a CDATA section.
Tokenizer::comment in vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php
Read a comment.
Tokenizer::decodeCharacterReference in vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php
Decode a character reference and return the string.

... See full list

File

vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php, line 979

Class

Tokenizer
The HTML5 tokenizer.

Namespace

Masterminds\HTML5\Parser

Code

protected function parseError($msg) {
  $args = func_get_args();
  if (count($args) > 1) {
    array_shift($args);
    $msg = vsprintf($msg, $args);
  }
  $line = $this->scanner
    ->currentLine();
  $col = $this->scanner
    ->columnOffset();
  $this->events
    ->parseError($msg, $line, $col);
  return false;
}