accessifyhtml5.js icon indicating copy to clipboard operation
accessifyhtml5.js copied to clipboard

Doesn't respect manually entered roles

Open jimmyfrasche opened this issue 12 years ago • 1 comments

I use this library so I don't have to worry about the default roles but sometimes I happen to want to add a different role to some markup and noticed that if I add it to one of the tags your script supports that it gets overwritten by the script. I'm using the jQuery version and just added +':not([role])' after the selector. I don't know if it's the best way but it works. Thanks for the handy script.

jimmyfrasche avatar Aug 08 '12 23:08 jimmyfrasche

Hi Jimmy,

sorry for responding so late. Will add that feature to the jquery and vanillajs version asap.

Eric

yatil avatar Sep 26 '12 19:09 yatil