Domanda

The responsive navigation on my site uses the aria-hidden="false" attribute. Is there a way I can set it to "true" purely through CSS? If not is there a line of code I can add so it can be set to false for IE7 and IE8 users?

È stato utile?

Soluzione

Do you use jQuery? if so you can do something like :

if(/MSIE [78]/.test(navigator.userAgent)) {
    $('* [aria-hidden="false"]').attr('aria-hidden', 'true');
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top