Skip to content

Commit 1f3a41f

Browse files
committed
Safari on iPhone is now treated as a HTML4 Browser.
1 parent 8acd667 commit 1f3a41f

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

demo/navigator.html

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE HTML>
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<title>
6+
Navigator Output
7+
</title>
8+
<style>
9+
label { font-weight:bold; }
10+
label:after { content: ":"; margin-right:5px; }
11+
</style>
12+
</head>
13+
<body>
14+
<div id="nav"></div>
15+
<script>
16+
var nav = document.getElementById('nav'), i,v;
17+
for ( i in navigator ) {
18+
var v = navigator[i];
19+
nav.innerHTML += '<div><label>'+i+'</label>'+v+'</div>';
20+
}
21+
</script>
22+
</body>
23+
</html>

scripts/uncompressed/history.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
* Which features require emulating?
178178
*/
179179
History.emulated = {
180-
pushState: !Boolean(window.history && window.history.pushState && window.history.replaceState)
180+
pushState: !Boolean(window.history && window.history.pushState && window.history.replaceState && navigator.platform !== 'iPhone')
181181
};
182182

183183
/**

0 commit comments

Comments
 (0)