]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Replace getElementsByTag by querySelector for IE10 Mobile plateform. 12104/head
authorGregory HOULLIER <gregory.houllier@niji.fr>
Sun, 5 Jan 2014 19:15:48 +0000 (20:15 +0100)
committerGregory HOULLIER <gregory.houllier@niji.fr>
Sun, 5 Jan 2014 19:15:48 +0000 (20:15 +0100)
docs/assets/js/application.js
docs/getting-started.html

index 78eed1ae980b86c129a378da2d2ab0ba08572bae..39969f081fff82d0962f5abf13cb2d274bc61083 100644 (file)
@@ -24,7 +24,7 @@
           '@-ms-viewport{width:auto!important}'
         )
       );
-      document.getElementsByTagName('head')[0].
+      document.querySelector('head').
         appendChild(msViewportStyle);
     }
 
index a09b78f6aad3e6d91d608cd566e7ee5f8cbd7379..1085d45abf7a1fc0126b2ebe039a1c0171145e5f 100644 (file)
@@ -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>