Skip to content

Commit 3466681

Browse files
author
aFarkas
committed
do not shiv vml elements (fixes issue #131 , thx @byronmcg)
1 parent a4d4dcb commit 3466681

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/html5shiv-printshiv.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @preserve HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
2+
* @preserve HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
33
*/
44
;(function(window, document) {
55
/*jshint evil:true */
@@ -133,7 +133,7 @@
133133
// a 403 response, will cause the tab/window to crash
134134
// * Script elements appended to fragments will execute when their `src`
135135
// or `text` property is set
136-
return node.canHaveChildren && !reSkip.test(nodeName) ? data.frag.appendChild(node) : node;
136+
return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node;
137137
}
138138

139139
/**

src/html5shiv.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @preserve HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
2+
* @preserve HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
33
*/
44
;(function(window, document) {
55
/*jshint evil:true */
@@ -133,7 +133,7 @@
133133
// a 403 response, will cause the tab/window to crash
134134
// * Script elements appended to fragments will execute when their `src`
135135
// or `text` property is set
136-
return node.canHaveChildren && !reSkip.test(nodeName) ? data.frag.appendChild(node) : node;
136+
return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node;
137137
}
138138

139139
/**

0 commit comments

Comments
 (0)