From a4f2aabfb05e16d5a29f1256f82e94b5fbe73583 Mon Sep 17 00:00:00 2001 From: Technosophos Date: Mon, 15 Apr 2013 17:25:49 -0500 Subject: Updated event handler interface. --- src/HTML5/Parser/EventHandler.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/HTML5/Parser/EventHandler.php') 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. */ -- cgit v1.2.3