summaryrefslogtreecommitdiff
path: root/test/HTML5/Parser/EventStack.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/HTML5/Parser/EventStack.php')
-rw-r--r--test/HTML5/Parser/EventStack.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/HTML5/Parser/EventStack.php b/test/HTML5/Parser/EventStack.php
index 9754334..68f0aa9 100644
--- a/test/HTML5/Parser/EventStack.php
+++ b/test/HTML5/Parser/EventStack.php
@@ -61,5 +61,11 @@ class EventStack implements EventHandler {
$this->store('eof');
}
+ public function parseError($msg, $line, $col) {
+ throw new EventStackParseError(sprintf("%s (line %d, col %d)", $msg, $line, $col));
+ }
+
}
+class EventStackParseError extends \Exception {
+}