function autoClosesUnclosedTags() {
      var clonedTestElement = testElement.cloneNode(false),
          returnValue,
          innerHTML;

      clonedTestElement.innerHTML = "<p><div></div>";
      innerHTML = clonedTestElement.innerHTML.toLowerCase();
      returnValue = innerHTML === "<p></p><div></div>" || innerHTML === "<p><div></div></p>";

      // Cache result by overwriting current function
      this.autoClosesUnclosedTags = function () {
        return returnValue;
      };

      return returnValue;
    }
/**
     * Check whether the browser automatically closes tags that don't need to be opened
     */
Check whether the browser automatically closes tags that don't need to be opened
Check whether the browser automatically closes tags that don ' t need to be opened
function autoClosesUnclosedTags() {
      var clonedTestElement = testElement.cloneNode(false),
          returnValue,
          innerHTML;
      clonedTestElement.innerHTML = "<p><div></div>";
      innerHTML = clonedTestElement.innerHTML.toLowerCase();
      returnValue = innerHTML === "<p></p><div></div>" || innerHTML === "<p><div></div></p>";
      this.autoClosesUnclosedTags = function () {
        return returnValue;
      };
      return returnValue;
    }
function autoClosesUnclosedTags ( ) { var clonedTestElement = testElement . cloneNode ( false ) , returnValue , innerHTML ; clonedTestElement . innerHTML = "<p><div></div>" ; innerHTML = clonedTestElement . innerHTML . toLowerCase ( ) ; returnValue = innerHTML === "<p></p><div></div>" || innerHTML === "<p><div></div></p>" ; this . autoClosesUnclosedTags = function ( ) { return returnValue ; } ; return returnValue ; }
Check whether the browser automatically closes tags that don't need to be opened
Check whether the browser automatically closes tags that don ' t need to be opened
// Cache result by overwriting current function