Skip to content

Commit 239e937

Browse files
committed
Set default encoding in the doc object.
1 parent c961ca6 commit 239e937

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/HTML5/Parser/DOMTreeBuilderTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public function testDocument()
5252
$html = '<!DOCTYPE html><html></html>';
5353
$doc = $this->parse($html);
5454

55+
$this->assertEquals('UTF-8', $doc->encoding);
5556
$this->assertInstanceOf('\DOMDocument', $doc);
5657
$this->assertEquals('html', $doc->documentElement->tagName);
5758
$this->assertEquals('http://www.w3.org/1999/xhtml', $doc->documentElement->namespaceURI);

0 commit comments

Comments
 (0)