Skip to content

Commit 782276b

Browse files
committed
Merge pull request #124 from bitovi/master
Supports tag names with hyphens like foo-bar.
2 parents 4d6527d + a43538b commit 782276b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/html5shiv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
'var n=f.cloneNode(),c=n.createElement;' +
188188
'h.shivMethods&&(' +
189189
// unroll the `createElement` calls
190-
getElements().join().replace(/\w+/g, function(nodeName) {
190+
getElements().join().replace(/[\w\-]+/g, function(nodeName) {
191191
data.createElem(nodeName);
192192
data.frag.createElement(nodeName);
193193
return 'c("' + nodeName + '")';

0 commit comments

Comments
 (0)