aboutsummaryrefslogtreecommitdiff
path: root/docs/getting-started
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-10-28 15:07:48 -0700
committerChris Rebert <[email protected]>2015-10-28 15:09:57 -0700
commitee34e924ddef0696f41445b4631b811edbececac (patch)
treef43c7b9b7b58d5110b0b4e21d320356c46afca00 /docs/getting-started
parent364925f9513959b04b3e685f6d59d41a269e93d1 (diff)
downloadbootstrap-ee34e924ddef0696f41445b4631b811edbececac.tar.xz
bootstrap-ee34e924ddef0696f41445b4631b811edbececac.zip
IE10 Mobile viewport bug workaround: document.querySelector('head') => document.head
Per http://caniuse.com/#feat=documenthead , document.head is supported in IE Mobile 10+, so slightly simplify the JS accordingly. [skip sauce]
Diffstat (limited to 'docs/getting-started')
-rw-r--r--docs/getting-started/browsers-devices.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/getting-started/browsers-devices.md b/docs/getting-started/browsers-devices.md
index ef66ac9a1..2cfaf7301 100644
--- a/docs/getting-started/browsers-devices.md
+++ b/docs/getting-started/browsers-devices.md
@@ -181,7 +181,7 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
'@-ms-viewport{width:auto!important}'
)
)
- document.querySelector('head').appendChild(msViewportStyle)
+ document.head.appendChild(msViewportStyle)
}
{% endhighlight %}