diff options
author | Matt Farina <[email protected]> | 2013-08-10 09:17:44 -0400 |
---|---|---|
committer | Matt Farina <[email protected]> | 2013-08-10 09:17:44 -0400 |
commit | 18979d6866d816b57f2199084c2dac6feeb9a456 (patch) | |
tree | 22440ec403c740a1e442b52f6117b97fd750e012 /test | |
parent | 65a11b73a06fcf3ce21db2298d9c460bcd286b66 (diff) |
#11: Updated the text handling in the tree builder to more accurately work in before head mode.
Diffstat (limited to 'test')
-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() { |