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 c0a436f commit 4046e83Copy full SHA for 4046e83
tests/DomTest.php
@@ -41,6 +41,14 @@ public function testIncorrectContentType()
41
$this->assertEquals($a->text, 'click here');
42
}
43
44
+ public function testCharsetConvertInAttribute()
45
+ {
46
+ $dom = new Dom;
47
+ $dom->loadFromFile(__DIR__ . '/files/ISO-8859-7.html', ['preserveLineBreaks' => true]);
48
+ $a = $dom->find('a', 0);
49
+ $this->assertEquals('/testη', $a->href);
50
+ }
51
+
52
public function testLoadSelfclosingAttr()
53
{
54
$dom = new Dom;
tests/files/ISO-8859-7.html
@@ -0,0 +1,8 @@
1
+<html>
2
+ <head>
3
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-7">
4
+ </head>
5
+ <body>
6
+ <a href="/testç">EEç<span>XX</span></a>
7
+ </body>
8
+</html>
0 commit comments