Я пытаюсь заставить мой jQuery Mobile работать с Internet Explorer.
Мой код довольно прост, это просто небольшая форма.
Я положил туда демонстрацию: http://pogopixels.com/jqmtest.html
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="content">
<form action="http://mxc.local/api/signup" method="post" accept-charset="utf-8">
<div data-role="fieldcontain">
<label for="email">Email</label><input type="text" id="email" name="email" />
</div>
<div data-role="fieldcontain">
<label for="username">Username</label><input type="text" id="username" name="username" />
</div>
<div data-role="fieldcontain">
<label for="password">Password</label><input type="password" id="password" name="password" />
</div>
<div data-role="fieldcontain">
<label for="confirmPassword">Confirm</label><input type="password" id="confirmPassword" name="confirmPassword" />
</div>
<button name="submit">Sign Up</button>
</form>
</div> <!-- /content -->
</div>
<!-- /page -->
</body>
</html>
Работает в Firefox и Chrome, однако IE9 отображает пустую страницу.
IE отображает сообщение типа «Проблема с отображением IE на локальном хосте для переключения в режим совместимости» внизу.
Есть идеи, что я могу сделать, чтобы это сработало?