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 5c7fe62 commit 566aaa2Copy full SHA for 566aaa2
tests/DomTest.php
@@ -483,4 +483,14 @@ public function testCaseSensitivity()
483
$FooBar = $dom->find('FooBar');
484
$this->assertEquals('asdf', $FooBar->Attribute);
485
}
486
+
487
+ public function testEmptyAttribute()
488
+ {
489
+ $str = '<ul class="summary"><li class></li>blah<li class="foo">what</li></ul>';
490
+ $dom = new Dom();
491
+ $dom->load($str);
492
493
+ $items = $dom->find('.summary .foo');
494
+ $this->assertEquals(1, count($items));
495
+ }
496
0 commit comments