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 1
1
/**
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
3
3
*/
4
4
; ( function ( window , document ) {
5
5
/*jshint evil:true */
78
78
*/
79
79
function getElements ( ) {
80
80
var elements = html5 . elements ;
81
- return typeof elements == 'string' ? elements . split ( ' ' ) : elements ;
81
+ return elements . join ? elements : elements . split ( ' ' ) ;
82
82
}
83
83
84
84
/**
89
89
*/
90
90
function addElements ( newElements , ownerDocument ) {
91
91
var elements = html5 . elements ;
92
- if ( typeof elements != 'string' ) {
92
+ if ( elements . join ) {
93
93
elements = elements . join ( ' ' ) ;
94
94
}
95
- if ( typeof newElements != 'string' ) {
95
+ if ( newElements . join ) {
96
96
newElements = newElements . join ( ' ' ) ;
97
97
}
98
- html5 . elements = elements + ' ' + newElements ;
98
+ html5 . elements = elements + ' ' + newElements ;
99
99
shivDocument ( ownerDocument ) ;
100
100
}
101
101
102
- /**
102
+ /**
103
103
* Returns the data associated to the given document
104
104
* @private
105
105
* @param {Document } ownerDocument The document.
Original file line number Diff line number Diff line change 1
1
/**
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
3
3
*/
4
4
; ( function ( window , document ) {
5
5
/*jshint evil:true */
78
78
*/
79
79
function getElements ( ) {
80
80
var elements = html5 . elements ;
81
- return typeof elements == 'string' ? elements . split ( ' ' ) : elements ;
81
+ return elements . join ? elements : elements . split ( ' ' ) ;
82
82
}
83
83
84
84
/**
89
89
*/
90
90
function addElements ( newElements , ownerDocument ) {
91
91
var elements = html5 . elements ;
92
- if ( typeof elements != 'string' ) {
92
+ if ( elements . join ) {
93
93
elements = elements . join ( ' ' ) ;
94
94
}
95
- if ( typeof newElements != 'string' ) {
95
+ if ( newElements . join ) {
96
96
newElements = newElements . join ( ' ' ) ;
97
97
}
98
- html5 . elements = elements + ' ' + newElements ;
98
+ html5 . elements = elements + ' ' + newElements ;
99
99
shivDocument ( ownerDocument ) ;
100
100
}
101
101
102
- /**
102
+ /**
103
103
* Returns the data associated to the given document
104
104
* @private
105
105
* @param {Document } ownerDocument The document.
You can’t perform that action at this time.
0 commit comments