Summary: | WebKit should ignore images with @alt matching only whitespace | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | chris fleizach <cfleizach> | ||||
Component: | Accessibility | Assignee: | chris fleizach <cfleizach> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | bdakin | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
chris fleizach
2011-12-09 10:57:25 PST
Created attachment 118595 [details]
patch
Comment on attachment 118595 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=118595&action=review > Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1900 > + if (!alt.string().stripWhiteSpace().isEmpty()) A better way to write this is: if (!alt.string().containsOnlyWhitespace()) 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. |