diagnostic.css icon indicating copy to clipboard operation
diagnostic.css copied to clipboard

Check for input type of image without alt attribute

Open karlgroves opened this issue 12 years ago • 3 comments

karlgroves avatar May 21 '13 14:05 karlgroves

Hi,

It's only after sending a pull request that I saw the 8 current issues you had already opened... A suitable selector for input[type="image"] with non-existent or empty alt would be: input[type="image"][alt=""], input[type="image"]:not([alt])

The difficult part is displaying an error without the help of :before and :after (input...) I chose to add a huge red background but a background-image encoded in base64 would be nice. Not an accessible flag though (oh irony); JS would be the only way to do it in a better way, I think.

PhilippeVay avatar May 22 '13 08:05 PhilippeVay

Great selector.

Agreed on the generated content. I think that although it isn't optimal, generated content would be valuable in some cases.

karlgroves avatar May 23 '13 01:05 karlgroves

Working on https://github.com/Heydon/REVENGE.CSS/blob/master/revenge.css, the best I could come up with was a background image on the input with faux text in it. Any other ideas?

Heydon avatar Aug 24 '13 08:08 Heydon