Menu

#170 Issue with foreach($html->find('a') as $element). Now listing all href details on the page.

closed
None
2019-04-22
2013-05-11
No

Hello,

When testing with http://www.channelingcontessa.com/2013/04/10/sunglasses-trends-under-100/.

And using:
foreach($html->find('a') as $element)
echo $element->href . '
';

It only listed few URL instead of all.

I tried creating different files, but same result.

$str = $html->save(); shows the complete page though.

Discussion

  • LogMANOriginal

    LogMANOriginal - 2019-04-18

    Ticket moved from /p/simplehtmldom/support-requests/23/

    Can't be converted:

    • _milestone: v1.0_(example)
    • _priority: 1
     
  • LogMANOriginal

    LogMANOriginal - 2019-04-22
    • status: open --> closed
    • assigned_to: LogMANOriginal
    • discussion: enabled --> disabled
     
  • LogMANOriginal

    LogMANOriginal - 2019-04-22

    Closing because the provided link doesn't work anymore and this issue is not reproducable. Please don't hesitate to open a new ticket for further discussion.

     
MongoDB Logo MongoDB