title: Uncaught TypeError: Cannot read property 'documentElement' of null
body: <p>After i include the bootstrap.js</p>
  
  <pre><code>&lt;script type="text/javascript" src="/js/bootstrap/js/bootstrap.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I get followning error in the console: 
  <strong>Uncaught TypeError: Cannot read property 'documentElement' of null</strong></p>
  
  <p>The boots collapse works just fine but the console get spammed this error.
  I have included jquery before bootstrap.</p>
  
  <p>Anyone else had this problem before? </p>
  
  <p>Edit:</p>
  
  <pre><code>  Tooltip.prototype.show = function () {
  var e = $.Event('show.bs.' + this.type)
  
  if (this.hasContent() &amp;&amp; this.enabled) {
    this.$element.trigger(e)
  
    var inDom = $.contains(this.$element[0].ownerDocument.documentElement, this.$element[0])
    if (e.isDefaultPrevented() || !inDom) return
    var that = this
  </code></pre>
  
  <p>this is a snipet from the bootstrap.js script.
  It seems the error comes always in the tooltip function in the var inDom line at the documentElement part</p>