summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatt Farina <[email protected]>2013-05-06 20:42:57 -0400
committerMatt Farina <[email protected]>2013-05-06 20:42:57 -0400
commit48a11216daee5472bef0bb332895e471e15dae27 (patch)
tree05dfd6db1ff667ede19ba3afbbc8024ccec1aea5 /test
parenta98febd74b7c6e7d18b11ca8a75b647f56fcf2c6 (diff)
Updated the traverser to use the html5 parser.
Diffstat (limited to 'test')
-rw-r--r--test/HTML5/Serializer/TraverserTest.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/test/HTML5/Serializer/TraverserTest.php b/test/HTML5/Serializer/TraverserTest.php
index 0b18bb6..7522f04 100644
--- a/test/HTML5/Serializer/TraverserTest.php
+++ b/test/HTML5/Serializer/TraverserTest.php
@@ -39,12 +39,7 @@ class TraverserTest extends \HTML5\Tests\TestCase {
function getTraverser() {
$stream = fopen('php://temp', 'w');
-
- // Using the existing parser (libxml).
- // @todo switch to the html5 parser.
- $dom = new \DOMDocument();
- $dom->loadHTML($this->markup);
-
+ $dom = \HTML5::parse($this->markup);
$t = new Traverser($dom, $stream);
// We return both the traverser and stream so we can pull from it.
@@ -57,10 +52,7 @@ class TraverserTest extends \HTML5\Tests\TestCase {
// use a stream in temp space.
$stream = fopen('php://temp', 'w');
- // Using the existing parser (libxml).
- // @todo switch to the html5 parser.
- $dom = new \DOMDocument();
- $dom->loadHTML($this->markup);
+ $dom = \HTML5::parse($this->markup);
$t = new Traverser($dom, $stream);