Spun off bug 476796. The namerules architecture currently does not allow alt= to be defined, which is used to specifically denote a decorative image, and whose accessible name must also be testable.
Created attachment 360687 [details] [diff] [review] Patch Turns out that I could test this with two sets of rules and markup.
Created attachment 363103 [details] [diff] [review] Patch updated to trunk The patch no longer applied cleanly to trunk. Updated.
Marco, thank you for keeping it up to dated. I would prefer actually to introduce markup support for this special cases. Your way works but it might be not easy understandable. I'll think how to extend our tests to test null names.
ping? (going through surkov's reviews and found this)
Comment on attachment 363103 [details] [diff] [review] Patch updated to trunk I've never got around to think how to improve this. I think we can take the patch as it is.