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 7b9ec6d commit 5281c08Copy full SHA for 5281c08
tests/DomTest.php
@@ -389,4 +389,12 @@ public function testWhitespaceInText()
389
$dom->load('<pre> Hello world</pre>');
390
$this->assertEquals('<pre> Hello world</pre>', (string) $dom);
391
}
392
+
393
+ public function testGetComplexAttribute()
394
+ {
395
+ $dom = new Dom;
396
+ $dom->load('<a href="?search=Fort+William&session_type=face&distance=100&uqs=119846&page=4" class="pagination-next">Next <span class="chevron">></span></a>');
397
+ $href = $dom->find('a', 0)->href;
398
+ $this->assertEquals('?search=Fort+William&session_type=face&distance=100&uqs=119846&page=4', $href);
399
+ }
400
0 commit comments