FIX: an `<a>` with a target of _blank wants a new window (PR #9607)

…even if it wraps an image.

Currently there’s a bug preventing some links opening new windows when they need it. E.g. in case an element wraps an like this:

<a href="" target="_blank"><img src=""/></a>

Actual result: In this case when user clicks the link the URL is opened in current window Expected result: the URL should be opened in new window

This improves : will be an in this case not having target="_blank".


Thanks! This is a nice fix.