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 4e3158c commit 8fccd89Copy full SHA for 8fccd89
tests/DomTest.php
@@ -634,8 +634,19 @@ public function testFindDescendantsOfMatch()
634
<i><b>another</b></i>
635
</p>');
636
637
- /** @var Dom\AbstractNode $meta */
638
$nodes = $dom->find('b');
639
$this->assertCount(5, $nodes);
640
}
+
641
+ public function testCompatibleWithWordPressShortcode()
642
+ {
643
+ $dom = new Dom();
644
+ $dom->load('<p>
645
+[wprs_alert type="success" content="this is a short code" /]
646
+</p>');
647
648
+ $node = $dom->find('p', 0);
649
+ $this->assertEquals(' [wprs_alert type="success" content="this is a short code" /] ', $node->innerHtml);
650
651
+ }
652
0 commit comments