We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 346e2ea commit fd38f92Copy full SHA for fd38f92
tests/DomTest.php
@@ -33,6 +33,13 @@ public function testIncorrectAccess()
33
$div = $dom->find('div', 0);
34
$this->assertEquals(null, $div->foo);
35
}
36
+ public function testIncorrectContentType()
37
+ {
38
+ $dom = new Dom;
39
+ $dom->load('<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8;"></head><body><div class="all"><p>Hey bro, <a href="google.com">click here</a><br /> :)</p></div></body></html>');
40
+ $a = $dom->find('a', 0);
41
+ $this->assertEquals($a->text, 'click here');
42
+ }
43
44
public function testLoadSelfclosingAttr()
45
{
0 commit comments