Skip to content

Comments

Add href to attributes to be searched#609

Open
nisbet-hubbard wants to merge 1 commit intorosell-dk:masterfrom
nisbet-hubbard:patch-1
Open

Add href to attributes to be searched#609
nisbet-hubbard wants to merge 1 commit intorosell-dk:masterfrom
nisbet-hubbard:patch-1

Conversation

@nisbet-hubbard
Copy link

Currently, <link> and <a> tags are searched by default:

// How about preloaded images? - yes, suppose we should replace those
// - <link rel="prefetch" href="[url]">
// - <link rel="preload" as="image" href="[url]">
public static $searchInTags = ['img', 'source', 'input', 'iframe', 'div', 'li', 'link', 'a', 'section', 'video'];

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant