webp-express icon indicating copy to clipboard operation
webp-express copied to clipboard

Add `href` to attributes to be searched

Open nisbet-hubbard opened this issue 7 months ago • 0 comments

Currently, <link> and <a> tags are searched by default: https://github.com/rosell-dk/webp-express/blob/18447e42cde58a3e876fa4184f8fa027bd258228/vendor/rosell-dk/dom-util-for-webp/src/ImageUrlReplacer.php#L41-L44

But their href attributes aren’t searched, with the result that URLs in <link> and <a> don’t actually get replaced even when the relevant images have been converted.

This PR fixed the issue.

nisbet-hubbard avatar Jul 02 '24 09:07 nisbet-hubbard