function Tokenizer::parseError
Emit a parse error.
A parse error always returns false because it never consumes any characters.
Parameters
string $msg:
Return value
string
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. See section 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. Expects the first tok to be inside of the comment.
- Tokenizer::consumeData in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php - Consume a character and make a move. HTML5 8.2.4.1.
File
-
vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php, line 1076
Class
- Tokenizer
- The HTML5 tokenizer.
Namespace
Masterminds\HTML5\ParserCode
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;
}