summaryrefslogtreecommitdiff
path: root/src/HTML5/Parser/EventHandler.php
diff options
context:
space:
mode:
authorMatt Butcher <[email protected]>2013-06-28 11:40:28 -0500
committerMatt Butcher <[email protected]>2013-06-28 11:40:28 -0500
commit3e1d8b8d5512082a6dca175de15574f627722c3c (patch)
tree4388413fcd377906440b2df769c81ab8e8e29949 /src/HTML5/Parser/EventHandler.php
parent5921b94e0a6b5c1abb3ecf6a25e2292bca68a58b (diff)
Documentation updates for Beta 1!
Diffstat (limited to 'src/HTML5/Parser/EventHandler.php')
-rw-r--r--src/HTML5/Parser/EventHandler.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/HTML5/Parser/EventHandler.php b/src/HTML5/Parser/EventHandler.php
index ebb30b2..4034938 100644
--- a/src/HTML5/Parser/EventHandler.php
+++ b/src/HTML5/Parser/EventHandler.php
@@ -4,6 +4,18 @@ namespace HTML5\Parser;
/**
* Standard events for HTML5.
*
+ * This is roughly analogous to a SAX2 or expat-style interface.
+ * However, it is tuned specifically for HTML5, according to section 8
+ * of the HTML5 specification.
+ *
+ * An event handler receives parser events. For a concrete
+ * implementation, see DOMTreeBuilder.
+ *
+ * Quirks support in the parser is limited to close-in syntax (malformed
+ * tags or attributes). Higher order syntax and semantic issues with a
+ * document (e.g. mismatched tags, illegal nesting, etc.) are the
+ * responsibility of the event handler implementation.
+ *
* See HTML5 spec section 8.2.4
*/
interface EventHandler {