code: function (containerType, html, document) {
              containerType = containerType.toUpperCase();
              var div = document.createElement("DIV");
              var domElt;
              if (containerType == "TBODY" || containerType == "THEAD" || containerType == "TFOOT") {
                  div.innerHTML = ["<TABLE><", containerType, ">", html, "</", containerType, "></TABLE>"].join('');
                  domElt = div.children[0].children[0];
              } else if (containerType == "TR") {
                  div.innerHTML = ["<TABLE><TBODY><", containerType, ">", html, "</", containerType, "></TBODY></TABLE>"].join('');
                  domElt = div.children[0].children[0].children[0];
              } else {
                  div.innerHTML = ["<", containerType, ">", html, "</", containerType, ">"].join('');
                  domElt = div.children[0];
              }
              this.$assert(194, !domElt || (domElt.tagName.toUpperCase() == containerType)); // only to be sure
              // we got the right element
              return domElt;
          }
docs: Work-around to create a table element of type containerType containing the given html in IE. As IE does not
  support setting the innerHTML property of tbody, tfoot, thead or tr elements directly. We use a simple
  work-around: create a complete table, and get the corresponding HTML element.
  @param {String} containerType type of the element which will be returned, and will contain the given html
  @param {String} html html to be put inside the element of type containerType
  @param {Object} document document to use to create the element
  @return {HTMLElement}
  @private