diff options
Diffstat (limited to 'test/HTML5/Parser/DOMTreeBuilderTest.php')
-rw-r--r-- | test/HTML5/Parser/DOMTreeBuilderTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/HTML5/Parser/DOMTreeBuilderTest.php b/test/HTML5/Parser/DOMTreeBuilderTest.php index a6c6a9c..1cb4a8c 100644 --- a/test/HTML5/Parser/DOMTreeBuilderTest.php +++ b/test/HTML5/Parser/DOMTreeBuilderTest.php @@ -200,8 +200,8 @@ class DOMTreeBuilderTest extends \HTML5\Tests\TestCase { Foo<head></head><body></body></html>"; $doc = $this->parse($html); $this->assertEquals('Line 0, Col 0: Unexpected text. Ignoring: Foo', $doc->errors[0]); - $whiteSpace = $doc->documentElement->firstChild; - $this->assertEquals("\n ", $whiteSpace->data); + $headElement = $doc->documentElement->firstChild; + $this->assertEquals('head', $headElement->tagName); } public function testParseErrors() { |