equalizedigital / accessibility-checker

GNU General Public License v2.0
15 stars 8 forks source link

Only consider possible heading if the tag wraps the entire text content #653

Closed pattonwebz closed 1 month ago

pattonwebz commented 1 month ago

Links that are modified by the New Window Warning plugin contain an <i> tag, which highlighted the possible header check was checking the containing tags incorrectly. This PR updates it to check if the tag wraps the entire text instead of simply checking it exists inside the scanned node.

Fixes: #652