summaryrefslogtreecommitdiff
path: root/src/HTML5/Parser
diff options
context:
space:
mode:
authorTechnosophos <[email protected]>2013-04-10 17:51:31 -0500
committerTechnosophos <[email protected]>2013-04-10 17:51:31 -0500
commit3025f278b30d45242b41d3b009a3ee5c539bd015 (patch)
treebfcb93b84b5ee0b55cfd16cd68bed8f19c759a7f /src/HTML5/Parser
parent7499b8919876b4ead8a1241fe3e188a62f575ff3 (diff)
Updated documentation in EventHandler.
Diffstat (limited to 'src/HTML5/Parser')
-rw-r--r--src/HTML5/Parser/EventHandler.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/HTML5/Parser/EventHandler.php b/src/HTML5/Parser/EventHandler.php
index 51960f1..8d200b1 100644
--- a/src/HTML5/Parser/EventHandler.php
+++ b/src/HTML5/Parser/EventHandler.php
@@ -7,12 +7,36 @@ namespace HTML5\Parser;
* See HTML5 spec section 8.2.4
*/
interface EventHandler {
+ /**
+ * A doctype declaration.
+ */
public function doctype($name, $publicID, $systemID, $quirks = FALSE);
+ /**
+ * A start tag.
+ */
public function startTag($name, $attributes = array(), $selfClosing = FALSE);
+ /**
+ * An end-tag.
+ */
public function endTag($name);
+ /**
+ * A comment section (unparsed character data).
+ */
public function comment($cdata);
+ /**
+ * A unit of parsed character data.
+ *
+ * Entities in this text are *already decoded*.
+ */
public function text($cdata);
+ /**
+ * Indicates that the document has been entirely processed.
+ */
public function eof();
+ /**
+ * Emitted when the parser encounters an error condition.
+ */
+ public function parseError($msg, $line, $col);
// Do we need...
// public function cdata();