Permalink
Browse files

Updated supportsHtml5Styles to be more awesome and address previous f…

…alse positives
  • Loading branch information...
1 parent 7647e1b commit 323eb25d5aaa4fd4cee27b598be86cf9fcad9042 @jonathantneal jonathantneal committed Jan 31, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/html5shiv-printshiv.js
  2. +1 −1 src/html5shiv.js
@@ -6,7 +6,7 @@
root.insertBefore(a, root.firstChild);
- a.setAttribute('hidden', 'hidden');
+ a.hidden = true;
supported = (compStyle ? compStyle(a, null) : a.currentStyle).display === 'none';
View
@@ -6,7 +6,7 @@
root.insertBefore(a, root.firstChild);
- a.setAttribute('hidden', 'hidden');
+ a.hidden = true;
supported = (compStyle ? compStyle(a, null) : a.currentStyle).display === 'none';

0 comments on commit 323eb25

Please sign in to comment.