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 924a594 commit 0127b9eCopy full SHA for 0127b9e
tests/DomTest.php
@@ -617,4 +617,16 @@ public function testFindAttributeInBothParentAndChild()
617
$nodes = $dom->find('[attribute]');
618
$this->assertCount(2, $nodes);
619
}
620
+
621
+ public function testLessThanCharacterInJavascript()
622
+ {
623
+ $results = (new Dom())->load('<html><head><script type="text/javascript">
624
+ console.log(1 < 3);
625
+ </script></head><body><div id="panel"></div></body></html>',
626
+ [
627
+ 'cleanupInput' => false,
628
+ 'removeScripts' => false
629
+ ])->find('body');
630
+ $this->assertCount(1, $results);
631
+ }
632
0 commit comments