WebKit should ignore images with @alt matching only whitespace
These are caused by <img alt=" "> (whitespace string); I think those should be treated the same way as alt="" (empty string). Ignore them completely.
Created attachment 118595 [details]
Comment on attachment 118595 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=118595&action=review
> + if (!alt.string().stripWhiteSpace().isEmpty())
A better way to write this is:
One subtle issue is that the containsOnlyWhitespace function uses the isASCIISpace definition of whitespace, not the HTML space definition, and there are some almost certainly irrelevant subtle differences between the two.