diff options
author | Matt Butcher <[email protected]> | 2013-04-03 09:45:26 -0500 |
---|---|---|
committer | Matt Butcher <[email protected]> | 2013-04-03 09:45:26 -0500 |
commit | 4c084245f12b99c1607a25a9e9df3c2b1039cd37 (patch) | |
tree | d9998c65a8904fa98431e2482099dd7367525bbf | |
parent | 97a89bd7189c31c34faa9109bf71aa59ac482727 (diff) |
Fixed parser.
-rw-r--r-- | example.php | 2 | ||||
-rw-r--r-- | src/HTML5/Parser.php | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/example.php b/example.php index 8c37225..3070048 100644 --- a/example.php +++ b/example.php @@ -5,6 +5,6 @@ require "vendor/autoload.php"; $html = "<html><head><title>TEST</title></head><body>Hello World</body></html>"; -$dom = \HTML5\Parser::parse($html); +$dom = \HTML5::parse($html); print_r($dom); diff --git a/src/HTML5/Parser.php b/src/HTML5/Parser.php index 892ab54..6a93a06 100644 --- a/src/HTML5/Parser.php +++ b/src/HTML5/Parser.php @@ -1,12 +1,6 @@ <?php namespace HTML5; -# Use autoloader -#require_once dirname(__FILE__) . '/Data.php'; -#require_once dirname(__FILE__) . '/InputStream.php'; -#require_once dirname(__FILE__) . '/TreeBuilder.php'; -#require_once dirname(__FILE__) . '/Tokenizer.php'; - /** * Outwards facing interface for HTML5. */ |