Skip to content

Commit

Permalink
Merge pull request jquery-archive#3172 from eddiemonge/issue_3169.1
Browse files Browse the repository at this point in the history
Update IE checker code for compiler
  • Loading branch information
johnbender committed Dec 6, 2011
2 parents 97bad66 + 26dc452 commit 9e58b93
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions js/jquery.mobile.support.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@ function baseTagTest() {
// allows for inclusion of IE 6+, including Windows Mobile 7
$.mobile.browser = {};
$.mobile.browser.ie = (function() {
var v = 3,
div = document.createElement( "div" ),
a = div.all || [];

while ( div.innerHTML = "<!--[if gt IE " + ( ++v ) + "]><br><![endif]-->", a[ 0 ] );

return v > 4 ? v : !v;
var undef,
v = 3,
div = document.createElement('div'),
all = div.getElementsByTagName('i');

while (
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
all[0]
);

return v > 4 ? v : undef;
})();


Expand Down

0 comments on commit 9e58b93

Please sign in to comment.