ID not found
gos-team opened this issue · 1 comments
gos-team commented
Hi,
I'm using your library to work with a custom parser, but for only a specific page (attached you have the full HTML) I have a strange behaviour.
Library seems unable to find the ID "buy-now-button" even if is present in the DOM
$dom = new Dom();
$dom->loadStr($htmlStr);
$button = $dom->find('#buy-now-button')[0];
$button is always empty.
Tested on PHP 7.4
I'm doing something wrong?
Thanks and regards.
Marco
KOSHI1108 commented
I am getting the same error.
php8.