Open kkmuffme opened 1 month ago
Hi @kkmuffme
Thanks for creating the issue and for providing the PR. Our development team will review it and will provide you with more details.
Thanks in advance.
Hi there @kkmuffme a question so that we can replicate as well:
NULL
for the $processor->get_attribute( 'src' )
operation?$processor->get_attribute( 'src' )
to return NULL
is to have an <img>
element without an src
attributeSo I was wondering if you have some pointers for us to be able to replicate
Exactly, that's how it happens. I've run across 3 scenarios how that happens:
Since I can't control what people do :-) and PHP deprecated notices are not a useful way to reach the target audience (= IT, but the HTML is from a user or a marketing dept) who created the invalid HTML, this should be handled to not throw a deprecated notice.
Good point, I'm moving this forward then 👍
I've created a separate PR that is based on your PR, just so that I facilitate reviewing and potentially merging this (along with some props for you).
PHP 8.3 wordpress-seo 23.7 => this issue wasn't there in 23.6
in wordpress-seo\src\images\Application\image-content-extractor.php
Maybe related to https://github.com/Yoast/wordpress-seo/issues/21723 but since there's no description I'm not sure.