function addWrappers(ownerDocument) {
    var node,
        nodes = ownerDocument.getElementsByTagName('*'),
        index = nodes.length,
        reElements = RegExp('^(?:' + getElements().join('|') + ')$', 'i'),
        result = [];

    while (index--) {
      node = nodes[index];
      if (reElements.test(node.nodeName)) {
        result.push(node.applyElement(createWrapper(node)));
      }
    }
    return result;
  }
function addWrappers(ownerDocument) {
    var node,
        nodes = ownerDocument.getElementsByTagName('*'),
        index = nodes.length,
        reElements = RegExp('^(?:' + getElements().join('|') + ')$', 'i'),
        result = [];

    while (index--) {
      node = nodes[index];
      if (reElements.test(node.nodeName)) {
        result.push(node.applyElement(createWrapper(node)));
      }
    }
    return result;
  }
function addWrappers ( ownerDocument ) { var node , nodes = ownerDocument . getElementsByTagName ( '*' ) , index = nodes . length , reElements = RegExp ( '^(?:' + getElements ( ) . join ( '|' ) + ')$' , 'i' ) , result = [ ] ; while ( index -- ) { node = nodes [ index ] ; if ( reElements . test ( node . nodeName ) ) { result . push ( node . applyElement ( createWrapper ( node ) ) ) ; } } return result ; }
/*-------------------------------------------------------------------------- 
Wraps all HTML5 elements in the given document with printable elements.
(eg. the "header" element is wrapped with the "html5shiv:header" element)
@private
@param {Document} ownerDocument The document.
@returns {Array} An array wrappers added.
/ * -------------------------------------------------------------------------- Wraps all HTML5 elements in the given document with printable elements . ( eg . the header element is wrapped with the html5shiv : header element )
Adds all the wrapper elements to the document