summaryrefslogtreecommitdiff
path: root/src/HTML5/Parser/EventHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTML5/Parser/EventHandler.php')
-rw-r--r--src/HTML5/Parser/EventHandler.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/HTML5/Parser/EventHandler.php b/src/HTML5/Parser/EventHandler.php
new file mode 100644
index 0000000..f144fc3
--- /dev/null
+++ b/src/HTML5/Parser/EventHandler.php
@@ -0,0 +1,20 @@
+<?php
+namespace HTML5\Parser;
+
+/**
+ * Standard events for HTML5.
+ *
+ * See HTML5 spec section 8.2.4
+ */
+interface EventHandler {
+ public function doctype($name, $publicID, $systemID, $quirks = FALSE);
+ public function startTag($name, $attributes = array(), $selfClosing = FALSE);
+ public function endTag($name);
+ public function comment($cdata);
+ public function character($cdata);
+ public function eof();
+
+ // Do we need...
+ // public function cdata();
+ // public function processorInstruction();
+}