Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jarofgreen committed Jul 26, 2015
1 parent e93fda3 commit 2676886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JMBTechnologyLimited/HTMLIsAnEvent/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function __construct($html, $url)
$dom = new Dom();
$dom->load($html, array( 'strict' => false ));

foreach($dom->find('div[itemtype="http://schema.org/Event"], li[itemtype="http://schema.org/Event"]') as $node) {
foreach($dom->find('[itemtype="http://schema.org/Event"]') as $node) {

$event = new Event();

Expand Down

0 comments on commit 2676886

Please sign in to comment.