Friday, October 1, 2010

Ignoring the abbr element in CSS

Problem: The browser does not recognize the abbr element, completely ignoring it.

Solution: Use JavaScript to fix the behavior (at least for those users who have JavaScript
enabled), as shown in “<ABBR> Support in IE,” by Jason Davis (www.browserland.org/
scripts/abbrhack/). Note that since Internet Explorer 7 does not exhibit this behavior,
the script should be targeted at earlier versions of the browser only, by using conditional
comments.

No comments:

Post a Comment