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.
Updates some condition checks to use ! empty() so it understands false like intended - instead of checking for empty string only.
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 returnsfalse
for non-existent alt attribute causing it to not return when intended.! empty()
so it understandsfalse
like intended - instead of checking for empty string only.Fixes: #522