public function DOMTreeBuilder::parseError in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php \Masterminds\HTML5\Parser\DOMTreeBuilder::parseError()
Emitted when the parser encounters an error condition.
Overrides EventHandler::parseError
4 calls to DOMTreeBuilder::parseError()
- DOMTreeBuilder::doctype in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ DOMTreeBuilder.php - A doctype declaration.
- DOMTreeBuilder::endTag in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ DOMTreeBuilder.php - An end-tag.
- DOMTreeBuilder::startTag in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ DOMTreeBuilder.php - Process the start tag.
- DOMTreeBuilder::text in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ DOMTreeBuilder.php - A unit of parsed character data.
File
- vendor/
masterminds/ html5/ src/ HTML5/ Parser/ DOMTreeBuilder.php, line 573
Class
- DOMTreeBuilder
- Create an HTML5 DOM tree from events.
Namespace
Masterminds\HTML5\ParserCode
public function parseError($msg, $line = 0, $col = 0) {
$this->errors[] = sprintf("Line %d, Col %d: %s", $line, $col, $msg);
}