summaryrefslogtreecommitdiff
path: root/src/HTML5/Parser/EventHandler.php
diff options
context:
space:
mode:
authorTechnosophos <[email protected]>2013-04-15 17:25:49 -0500
committerTechnosophos <[email protected]>2013-04-15 17:25:49 -0500
commita4f2aabfb05e16d5a29f1256f82e94b5fbe73583 (patch)
tree22daef538a92f40afe5a32e4d7fd620298e6088d /src/HTML5/Parser/EventHandler.php
parent56e13d972eadec82cda8c9c59b2f597c38e1aafb (diff)
Updated event handler interface.
Diffstat (limited to 'src/HTML5/Parser/EventHandler.php')
-rw-r--r--src/HTML5/Parser/EventHandler.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/HTML5/Parser/EventHandler.php b/src/HTML5/Parser/EventHandler.php
index 76df740..bc16cdf 100644
--- a/src/HTML5/Parser/EventHandler.php
+++ b/src/HTML5/Parser/EventHandler.php
@@ -7,10 +7,23 @@ namespace HTML5\Parser;
* See HTML5 spec section 8.2.4
*/
interface EventHandler {
+ const DOCTYPE_NONE = 0;
+ const DOCTYPE_PUBLIC = 1;
+ const DOCTYPE_SYSTEM = 2;
/**
* A doctype declaration.
+ *
+ * @param string $name
+ * The name of the root element.
+ * @param int $idType
+ * One of DOCTYPE_NONE, DOCTYPE_PUBLIC, or DOCTYPE_SYSTEM.
+ * @param string $id
+ * The identifier. For DOCTYPE_PUBLIC, this is the public ID. If DOCTYPE_SYSTEM,
+ * then this is a system ID.
+ * @param boolean $quirks
+ * Indicates whether the builder should enter quirks mode.
*/
- public function doctype($name, $publicID, $systemID, $quirks = FALSE);
+ public function doctype($name, $idType = 0, $id = NULL, $quirks = FALSE);
/**
* A start tag.
*/