Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
2787 rexy 1
/**
2
* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
3
*/
4
;(function(window, document) {
5
/*jshint evil:true */
6
  /** version */
7
  var version = '3.7.3';
8
 
9
  /** Preset options */
10
  var options = window.html5 || {};
11
 
12
  /** Used to skip problem elements */
13
  var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;
14
 
15
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /** Not all elements can be cloned in IE **/
16
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;
17
 
18
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /** Detect whether the browser supports default html5 styles */
19
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  var supportsHtml5Styles;
20
 
21
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /** Name of the expando, to work with multiple documents or to re-shiv one document */
22
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  var expando = '_html5shiv';
23
 
24
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /** The id for the the documents expando */
25
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  var expanID = 0;
26
 
27
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /** Cached data for each document */
28
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  var expandoData = {};
29
 
30
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /** Detect whether the browser supports unknown elements */
31
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  var supportsUnknownElements;
32
 
33
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  (function() {
34
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    try {
35
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        var a = document.createElement('a');
36
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        a.innerHTML = '<xyz></xyz>';
37
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles
38
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        supportsHtml5Styles = ('hidden' in a);
39
 
40
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        supportsUnknownElements = a.childNodes.length == 1 || (function() {
41
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          // assign a false positive if unable to shiv
42
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          (document.createElement)('a');
43
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          var frag = document.createDocumentFragment();
44
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          return (
45
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/            typeof frag.cloneNode == 'undefined' ||
46
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/            typeof frag.createDocumentFragment == 'undefined' ||
47
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/            typeof frag.createElement == 'undefined'
48
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          );
49
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        }());
50
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    } catch(e) {
51
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      // assign a false positive if detection fails => unable to shiv
52
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      supportsHtml5Styles = true;
53
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      supportsUnknownElements = true;
54
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
55
 
56
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }());
57
 
58
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /*--------------------------------------------------------------------------*/
59
 
60
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /**
61
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * Creates a style sheet with the given CSS text and adds it to the document.
62
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @private
63
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {Document} ownerDocument The document.
64
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {String} cssText The CSS text.
65
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @returns {StyleSheet} The style element.
66
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   */
67
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  function addStyleSheet(ownerDocument, cssText) {
68
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    var p = ownerDocument.createElement('p'),
69
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement;
70
 
71
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    p.innerHTML = 'x<style>' + cssText + '</style>';
72
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    return parent.insertBefore(p.lastChild, parent.firstChild);
73
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }
74
 
75
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /**
76
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * Returns the value of `html5.elements` as an array.
77
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @private
78
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @returns {Array} An array of shived element node names.
79
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   */
80
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  function getElements() {
81
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    var elements = html5.elements;
82
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    return typeof elements == 'string' ? elements.split(' ') : elements;
83
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }
84
 
85
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /**
86
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * Extends the built-in list of html5 elements
87
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @memberOf html5
88
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {String|Array} newElements whitespace separated list or array of new element names to shiv
89
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {Document} ownerDocument The context document.
90
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   */
91
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  function addElements(newElements, ownerDocument) {
92
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    var elements = html5.elements;
93
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if(typeof elements != 'string'){
94
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      elements = elements.join(' ');
95
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
96
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if(typeof newElements != 'string'){
97
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      newElements = newElements.join(' ');
98
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
99
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    html5.elements = elements +' '+ newElements;
100
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    shivDocument(ownerDocument);
101
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }
102
 
103
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    /**
104
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * Returns the data associated to the given document
105
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @private
106
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {Document} ownerDocument The document.
107
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @returns {Object} An object of data.
108
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   */
109
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  function getExpandoData(ownerDocument) {
110
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    var data = expandoData[ownerDocument[expando]];
111
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if (!data) {
112
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        data = {};
113
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        expanID++;
114
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        ownerDocument[expando] = expanID;
115
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        expandoData[expanID] = data;
116
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
117
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    return data;
118
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }
119
 
120
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /**
121
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * returns a shived element for the given nodeName and document
122
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @memberOf html5
123
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {String} nodeName name of the element
124
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {Document} ownerDocument The context document.
125
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @returns {Object} The shived element.
126
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   */
127
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  function createElement(nodeName, ownerDocument, data){
128
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if (!ownerDocument) {
129
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        ownerDocument = document;
130
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
131
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if(supportsUnknownElements){
132
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        return ownerDocument.createElement(nodeName);
133
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
134
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if (!data) {
135
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        data = getExpandoData(ownerDocument);
136
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
137
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    var node;
138
 
139
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if (data.cache[nodeName]) {
140
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        node = data.cache[nodeName].cloneNode();
141
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    } else if (saveClones.test(nodeName)) {
142
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode();
143
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    } else {
144
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        node = data.createElem(nodeName);
145
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
146
 
147
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    // Avoid adding some elements to fragments in IE < 9 because
148
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    // * Attributes like `name` or `type` cannot be set/changed once an element
149
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    //   is inserted into a document/fragment
150
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    // * Link elements with `src` attributes that are inaccessible, as with
151
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    //   a 403 response, will cause the tab/window to crash
152
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    // * Script elements appended to fragments will execute when their `src`
153
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    //   or `text` property is set
154
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node;
155
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }
156
 
157
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /**
158
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * returns a shived DocumentFragment for the given document
159
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @memberOf html5
160
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {Document} ownerDocument The context document.
161
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @returns {Object} The shived DocumentFragment.
162
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   */
163
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  function createDocumentFragment(ownerDocument, data){
164
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if (!ownerDocument) {
165
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        ownerDocument = document;
166
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
167
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if(supportsUnknownElements){
168
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        return ownerDocument.createDocumentFragment();
169
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
170
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    data = data || getExpandoData(ownerDocument);
171
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    var clone = data.frag.cloneNode(),
172
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        i = 0,
173
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        elems = getElements(),
174
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        l = elems.length;
175
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    for(;i<l;i++){
176
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        clone.createElement(elems[i]);
177
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
178
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    return clone;
179
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }
180
 
181
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /**
182
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * Shivs the `createElement` and `createDocumentFragment` methods of the document.
183
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @private
184
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {Document|DocumentFragment} ownerDocument The document.
185
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {Object} data of the document.
186
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   */
187
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  function shivMethods(ownerDocument, data) {
188
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if (!data.cache) {
189
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        data.cache = {};
190
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        data.createElem = ownerDocument.createElement;
191
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        data.createFrag = ownerDocument.createDocumentFragment;
192
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        data.frag = data.createFrag();
193
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
194
 
195
 
196
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    ownerDocument.createElement = function(nodeName) {
197
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      //abort shiv
198
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      if (!html5.shivMethods) {
199
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          return data.createElem(nodeName);
200
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      }
201
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      return createElement(nodeName, ownerDocument, data);
202
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    };
203
 
204
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    ownerDocument.createDocumentFragment = Function('h,f', 'return function(){' +
205
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      'var n=f.cloneNode(),c=n.createElement;' +
206
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      'h.shivMethods&&(' +
207
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        // unroll the `createElement` calls
208
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        getElements().join().replace(/[\w\-:]+/g, function(nodeName) {
209
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          data.createElem(nodeName);
210
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          data.frag.createElement(nodeName);
211
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          return 'c("' + nodeName + '")';
212
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        }) +
213
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      ');return n}'
214
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    )(html5, data.frag);
215
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }
216
 
217
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /*--------------------------------------------------------------------------*/
218
 
219
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /**
220
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * Shivs the given document.
221
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @memberOf html5
222
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {Document} ownerDocument The document to shiv.
223
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @returns {Document} The shived document.
224
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   */
225
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  function shivDocument(ownerDocument) {
226
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if (!ownerDocument) {
227
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        ownerDocument = document;
228
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
229
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    var data = getExpandoData(ownerDocument);
230
 
231
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) {
232
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      data.hasCSS = !!addStyleSheet(ownerDocument,
233
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        // corrects block display not defined in IE6/7/8/9
234
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' +
235
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        // adds styling not present in IE6/7/8/9
236
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        'mark{background:#FF0;color:#000}' +
237
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        // hides non-rendered elements
238
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        'template{display:none}'
239
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      );
240
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
241
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if (!supportsUnknownElements) {
242
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      shivMethods(ownerDocument, data);
243
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
244
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    return ownerDocument;
245
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }
246
 
247
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /*--------------------------------------------------------------------------*/
248
 
249
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /**
250
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * The `html5` object is exposed so that more elements can be shived and
251
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * existing shiving can be detected on iframes.
252
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @type Object
253
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @example
254
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   *
255
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * // options can be changed before the script is included
256
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * html5 = { 'elements': 'mark section', 'shivCSS': false, 'shivMethods': false };
257
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   */
258
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  var html5 = {
259
 
260
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    /**
261
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * An array or space separated string of node names of the elements to shiv.
262
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * @memberOf html5
263
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * @type Array|String
264
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     */
265
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video',
266
 
267
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    /**
268
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * current version of html5shiv
269
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     */
270
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    'version': version,
271
 
272
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    /**
273
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * A flag to indicate that the HTML5 style sheet should be inserted.
274
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * @memberOf html5
275
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * @type Boolean
276
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     */
277
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    'shivCSS': (options.shivCSS !== false),
278
 
279
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    /**
280
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * Is equal to true if a browser supports creating unknown/HTML5 elements
281
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * @memberOf html5
282
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * @type boolean
283
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     */
284
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    'supportsUnknownElements': supportsUnknownElements,
285
 
286
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    /**
287
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * A flag to indicate that the document's `createElement` and `createDocumentFragment`
288
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * methods should be overwritten.
289
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * @memberOf html5
290
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * @type Boolean
291
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     */
292
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    'shivMethods': (options.shivMethods !== false),
293
 
294
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    /**
295
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * A string to describe the type of `html5` object ("default" or "default print").
296
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * @memberOf html5
297
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     * @type String
298
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/     */
299
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    'type': 'default',
300
 
301
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    // shivs the document according to the specified `html5` object options
302
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    'shivDocument': shivDocument,
303
 
304
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    //creates a shived element
305
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    createElement: createElement,
306
 
307
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    //creates a shived documentFragment
308
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    createDocumentFragment: createDocumentFragment,
309
 
310
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    //extends list of elements
311
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    addElements: addElements
312
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  };
313
 
314
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /*--------------------------------------------------------------------------*/
315
 
316
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  // expose html5
317
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  window.html5 = html5;
318
 
319
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  // shiv the document
320
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  shivDocument(document);
321
 
322
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /*------------------------------- Print Shiv -------------------------------*/
323
 
324
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /** Used to filter media types */
325
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  var reMedia = /^$|\b(?:all|print)\b/;
326
 
327
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /** Used to namespace printable elements */
328
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  var shivNamespace = 'html5shiv';
329
 
330
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /** Detect whether the browser supports shivable style sheets */
331
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  var supportsShivableSheets = !supportsUnknownElements && (function() {
332
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    // assign a false negative if unable to shiv
333
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    var docEl = document.documentElement;
334
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    return !(
335
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      typeof document.namespaces == 'undefined' ||
336
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      typeof document.parentWindow == 'undefined' ||
337
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      typeof docEl.applyElement == 'undefined' ||
338
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      typeof docEl.removeNode == 'undefined' ||
339
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      typeof window.attachEvent == 'undefined'
340
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    );
341
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }());
342
 
343
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /*--------------------------------------------------------------------------*/
344
 
345
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /**
346
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * Wraps all HTML5 elements in the given document with printable elements.
347
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * (eg. the "header" element is wrapped with the "html5shiv:header" element)
348
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @private
349
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {Document} ownerDocument The document.
350
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @returns {Array} An array wrappers added.
351
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   */
352
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  function addWrappers(ownerDocument) {
353
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    var node,
354
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        nodes = ownerDocument.getElementsByTagName('*'),
355
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        index = nodes.length,
356
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        reElements = RegExp('^(?:' + getElements().join('|') + ')$', 'i'),
357
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        result = [];
358
 
359
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    while (index--) {
360
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      node = nodes[index];
361
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      if (reElements.test(node.nodeName)) {
362
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        result.push(node.applyElement(createWrapper(node)));
363
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      }
364
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
365
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    return result;
366
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }
367
 
368
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /**
369
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * Creates a printable wrapper for the given element.
370
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @private
371
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {Element} element The element.
372
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @returns {Element} The wrapper.
373
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   */
374
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  function createWrapper(element) {
375
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    var node,
376
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        nodes = element.attributes,
377
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        index = nodes.length,
378
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        wrapper = element.ownerDocument.createElement(shivNamespace + ':' + element.nodeName);
379
 
380
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    // copy element attributes to the wrapper
381
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    while (index--) {
382
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      node = nodes[index];
383
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      node.specified && wrapper.setAttribute(node.nodeName, node.nodeValue);
384
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
385
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    // copy element styles to the wrapper
386
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    wrapper.style.cssText = element.style.cssText;
387
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    return wrapper;
388
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }
389
 
390
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /**
391
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * Shivs the given CSS text.
392
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * (eg. header{} becomes html5shiv\:header{})
393
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @private
394
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {String} cssText The CSS text to shiv.
395
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @returns {String} The shived CSS text.
396
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   */
397
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  function shivCssText(cssText) {
398
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    var pair,
399
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        parts = cssText.split('{'),
400
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        index = parts.length,
401
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        reElements = RegExp('(^|[\\s,>+~])(' + getElements().join('|') + ')(?=[[\\s,>+~#.:]|$)', 'gi'),
402
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        replacement = '$1' + shivNamespace + '\\:$2';
403
 
404
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    while (index--) {
405
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      pair = parts[index] = parts[index].split('}');
406
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      pair[pair.length - 1] = pair[pair.length - 1].replace(reElements, replacement);
407
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      parts[index] = pair.join('}');
408
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
409
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    return parts.join('{');
410
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }
411
 
412
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /**
413
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * Removes the given wrappers, leaving the original elements.
414
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @private
415
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @params {Array} wrappers An array of printable wrappers.
416
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   */
417
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  function removeWrappers(wrappers) {
418
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    var index = wrappers.length;
419
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    while (index--) {
420
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      wrappers[index].removeNode();
421
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
422
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }
423
 
424
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /*--------------------------------------------------------------------------*/
425
 
426
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /**
427
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * Shivs the given document for print.
428
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @memberOf html5
429
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @param {Document} ownerDocument The document to shiv.
430
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   * @returns {Document} The shived document.
431
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/   */
432
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  function shivPrint(ownerDocument) {
433
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    var shivedSheet,
434
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        wrappers,
435
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        data = getExpandoData(ownerDocument),
436
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        namespaces = ownerDocument.namespaces,
437
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        ownerWindow = ownerDocument.parentWindow;
438
 
439
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if (!supportsShivableSheets || ownerDocument.printShived) {
440
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      return ownerDocument;
441
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
442
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    if (typeof namespaces[shivNamespace] == 'undefined') {
443
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      namespaces.add(shivNamespace);
444
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
445
 
446
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    function removeSheet() {
447
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      clearTimeout(data._removeSheetTimer);
448
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      if (shivedSheet) {
449
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          shivedSheet.removeNode(true);
450
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      }
451
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      shivedSheet= null;
452
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    }
453
 
454
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    ownerWindow.attachEvent('onbeforeprint', function() {
455
 
456
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      removeSheet();
457
 
458
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      var imports,
459
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          length,
460
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          sheet,
461
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          collection = ownerDocument.styleSheets,
462
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          cssText = [],
463
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          index = collection.length,
464
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          sheets = Array(index);
465
 
466
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      // convert styleSheets collection to an array
467
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      while (index--) {
468
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        sheets[index] = collection[index];
469
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      }
470
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      // concat all style sheet CSS text
471
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      while ((sheet = sheets.pop())) {
472
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        // IE does not enforce a same origin policy for external style sheets...
473
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        // but has trouble with some dynamically created stylesheets
474
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        if (!sheet.disabled && reMedia.test(sheet.media)) {
475
 
476
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          try {
477
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/            imports = sheet.imports;
478
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/            length = imports.length;
479
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          } catch(er){
480
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/            length = 0;
481
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          }
482
 
483
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          for (index = 0; index < length; index++) {
484
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/            sheets.push(imports[index]);
485
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          }
486
 
487
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          try {
488
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/            cssText.push(sheet.cssText);
489
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/          } catch(er){}
490
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/        }
491
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      }
492
 
493
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      // wrap all HTML5 elements with printable elements and add the shived style sheet
494
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      cssText = shivCssText(cssText.reverse().join(''));
495
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      wrappers = addWrappers(ownerDocument);
496
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      shivedSheet = addStyleSheet(ownerDocument, cssText);
497
 
498
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    });
499
 
500
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    ownerWindow.attachEvent('onafterprint', function() {
501
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      // remove wrappers, leaving the original elements, and remove the shived style sheet
502
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      removeWrappers(wrappers);
503
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      clearTimeout(data._removeSheetTimer);
504
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/      data._removeSheetTimer = setTimeout(removeSheet, 500);
505
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    });
506
 
507
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    ownerDocument.printShived = true;
508
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    return ownerDocument;
509
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }
510
 
511
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  /*--------------------------------------------------------------------------*/
512
 
513
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  // expose API
514
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  html5.type += ' print';
515
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  html5.shivPrint = shivPrint;
516
 
517
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  // shiv for print
518
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  shivPrint(document);
519
 
520
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  if(typeof module == 'object' && module.exports){
521
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/    module.exports = html5;
522
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/  }
523
 
524
<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/}(typeof window !== "undefined" ? window : this, document));