mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
if a link contains nested elements like `<a href="http://somewhere"><strong>goto</strong></a>` then the link is trigger by the `<strong />` element which has no `href` attribute. We were thus releasing the event in this case, resulting in legitimate external links not blocked. We are now looking for the closest `<a />` parent (might be self) to retrieve the `href` attribute and capture if necessary.