From: Gregory HOULLIER Date: Sun, 5 Jan 2014 19:15:48 +0000 (+0100) Subject: Replace getElementsByTag by querySelector for IE10 Mobile plateform. X-Git-Tag: v3.1.0~124^2~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12104%2Fhead;p=thirdparty%2Fbootstrap.git Replace getElementsByTag by querySelector for IE10 Mobile plateform. --- diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 78eed1ae98..39969f081f 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 a09b78f6aa..1085d45abf 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 %}

For more information and usage guidelines, read Windows Phone 8 and Device-Width.