File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 11/**
2- * @preserve HTML5 Shiv 3.7.4-pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
2+ * @preserve HTML5 Shiv 3.7.4-pre | @afarkas @jdalton @jon_neal @rem @mina86 | MIT/GPL2 Licensed
33*/
44; ( function ( window , document ) {
55/*jshint evil:true */
7878 */
7979 function getElements ( ) {
8080 var elements = html5 . elements ;
81- return typeof elements == 'string' ? elements . split ( ' ' ) : elements ;
81+ return elements . join ? elements : elements . split ( ' ' ) ;
8282 }
8383
8484 /**
8989 */
9090 function addElements ( newElements , ownerDocument ) {
9191 var elements = html5 . elements ;
92- if ( typeof elements != 'string' ) {
92+ if ( elements . join ) {
9393 elements = elements . join ( ' ' ) ;
9494 }
95- if ( typeof newElements != 'string' ) {
95+ if ( newElements . join ) {
9696 newElements = newElements . join ( ' ' ) ;
9797 }
98- html5 . elements = elements + ' ' + newElements ;
98+ html5 . elements = elements + ' ' + newElements ;
9999 shivDocument ( ownerDocument ) ;
100100 }
101101
102- /**
102+ /**
103103 * Returns the data associated to the given document
104104 * @private
105105 * @param {Document } ownerDocument The document.
Original file line number Diff line number Diff line change 11/**
2- * @preserve HTML5 Shiv 3.7.4-pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
2+ * @preserve HTML5 Shiv 3.7.4-pre | @afarkas @jdalton @jon_neal @rem @mina86 | MIT/GPL2 Licensed
33*/
44; ( function ( window , document ) {
55/*jshint evil:true */
7878 */
7979 function getElements ( ) {
8080 var elements = html5 . elements ;
81- return typeof elements == 'string' ? elements . split ( ' ' ) : elements ;
81+ return elements . join ? elements : elements . split ( ' ' ) ;
8282 }
8383
8484 /**
8989 */
9090 function addElements ( newElements , ownerDocument ) {
9191 var elements = html5 . elements ;
92- if ( typeof elements != 'string' ) {
92+ if ( elements . join ) {
9393 elements = elements . join ( ' ' ) ;
9494 }
95- if ( typeof newElements != 'string' ) {
95+ if ( newElements . join ) {
9696 newElements = newElements . join ( ' ' ) ;
9797 }
98- html5 . elements = elements + ' ' + newElements ;
98+ html5 . elements = elements + ' ' + newElements ;
9999 shivDocument ( ownerDocument ) ;
100100 }
101101
102- /**
102+ /**
103103 * Returns the data associated to the given document
104104 * @private
105105 * @param {Document } ownerDocument The document.
You can’t perform that action at this time.
0 commit comments