aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-01-05 11:47:00 -0800
committerChris Rebert <[email protected]>2014-01-05 11:47:00 -0800
commit41257fe794f6c8dbb1a7bf3a33fea3187a1565e9 (patch)
treea045ec80aeb729174db54450be1ab733ec86afa5
parent711d0b833770264ab9a532267e84db1c9b951a13 (diff)
parenta53cf55be2ed9fd823053c8320dc106272baf2a9 (diff)
downloadbootstrap-41257fe794f6c8dbb1a7bf3a33fea3187a1565e9.tar.xz
bootstrap-41257fe794f6c8dbb1a7bf3a33fea3187a1565e9.zip
Merge pull request #12104 from ghoullier/master
Replace getElementsByTag with querySelector in IE10 Mobile viewport JS snippet
-rw-r--r--docs/assets/js/application.js2
-rw-r--r--docs/getting-started.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js
index 78eed1ae9..39969f081 100644
--- a/docs/assets/js/application.js
+++ b/docs/assets/js/application.js
@@ -24,7 +24,7 @@
'@-ms-viewport{width:auto!important}'
)
);
- document.getElementsByTagName('head')[0].
+ document.querySelector('head').
appendChild(msViewportStyle);
}
diff --git a/docs/getting-started.html b/docs/getting-started.html
index a8b2aecec..eb2fe8512 100644
--- a/docs/getting-started.html
+++ b/docs/getting-started.html
@@ -852,7 +852,7 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
"@-ms-viewport{width:auto!important}"
)
)
- document.getElementsByTagName("head")[0].appendChild(msViewportStyle)
+ document.querySelector("head").appendChild(msViewportStyle)
}
{% endhighlight %}
<p>For more information and usage guidelines, read <a href="http://timkadlec.com/2013/01/windows-phone-8-and-device-width/">Windows Phone 8 and Device-Width</a>.</p>