diff options
| author | Gregory HOULLIER <[email protected]> | 2014-01-05 20:15:48 +0100 |
|---|---|---|
| committer | Gregory HOULLIER <[email protected]> | 2014-01-05 20:15:48 +0100 |
| commit | a53cf55be2ed9fd823053c8320dc106272baf2a9 (patch) | |
| tree | 9ecb70a01dd894d1f06b9955295b922ce7838b1a /docs | |
| parent | 84c33a822da54a48f0f4751fe519dfc6b324a453 (diff) | |
| download | bootstrap-a53cf55be2ed9fd823053c8320dc106272baf2a9.tar.xz bootstrap-a53cf55be2ed9fd823053c8320dc106272baf2a9.zip | |
Replace getElementsByTag by querySelector for IE10 Mobile plateform.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/assets/js/application.js | 2 | ||||
| -rw-r--r-- | docs/getting-started.html | 2 |
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 a09b78f6a..1085d45ab 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> |
