I am trying to target an img from a mutation like so:
var image = mutation.parentElement.querySelector('img[alt="Text"]');
The problem is, when an image has multiple alt values it's not being detected. It matches an image only if it contains "Text" only so not "Demo Text".
I want to target images like this one:
<img src="demo.jpg" alt="Apple-one Text" />
and
<img src="demo1.jpg" alt="Text" />