From: Heinrich Fenkart Date: Tue, 8 Jul 2014 22:38:44 +0000 (+0200) Subject: `document.head` is undefined in IE8 X-Git-Tag: v3.3.0~352^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14090%2Fhead;p=thirdparty%2Fbootstrap.git `document.head` is undefined in IE8 --- diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js index 4cecf9348e..6871f538e3 100644 --- a/js/tests/unit/tooltip.js +++ b/js/tests/unit/tooltip.js @@ -470,7 +470,7 @@ $(function () { + '.tooltip.right { white-space: nowrap; }' + '.tooltip.right .tooltip-inner { max-width: none; }' + '' - var $styles = $(styles).appendTo(document.head) + var $styles = $(styles).appendTo('head') var $container = $('
').appendTo(document.body) var $target = $('') @@ -585,7 +585,7 @@ $(function () { + '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + 'a[rel="tooltip"] { position: fixed; }' + '' - var $styles = $(styles).appendTo(document.head) + var $styles = $(styles).appendTo('head') var $container = $('
').appendTo(document.body) var $target = $('') @@ -613,7 +613,7 @@ $(function () { + '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + 'a[rel="tooltip"] { position: fixed; }' + '' - var $styles = $(styles).appendTo(document.head) + var $styles = $(styles).appendTo('head') var $container = $('
').appendTo(document.body) var $target = $('') @@ -642,7 +642,7 @@ $(function () { + '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + 'a[rel="tooltip"] { position: fixed; }' + '' - var $styles = $(styles).appendTo(document.head) + var $styles = $(styles).appendTo('head') var $container = $('
').appendTo(document.body) var $target = $('') @@ -670,7 +670,7 @@ $(function () { + '.tooltip .tooltip-inner { width: 200px; height: 200px; max-width: none; }' + 'a[rel="tooltip"] { position: fixed; }' + '' - var $styles = $(styles).appendTo(document.head) + var $styles = $(styles).appendTo('head') var $container = $('