equalizedigital / accessibility-checker

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

Prevent false flagging duplicate alt test when alt isn't present #550

Closed pattonwebz closed 5 months ago

pattonwebz commented 5 months ago

The check rule for redundant alt text was flagging elements that had no alt attribute at all because it was checking for !== '' (not empty strings) when Simple HTML Dom returns false for non-existent alt attribute causing it to not return when intended.

Fixes: #522