Skip to content

Commit

Permalink
Fix to html5shiv to allow for nodes that include '-' and ':'
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoshdean committed Nov 8, 2013
1 parent 1d2231d commit 0478d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/html5shiv.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
'var n=f.cloneNode(),c=n.createElement;' +
'h.shivMethods&&(' +
// unroll the `createElement` calls
getElements().join().replace(/[\w\-]+/g, function(nodeName) {
getElements().join().replace(/[^,]+/g, function(nodeName) {
data.createElem(nodeName);
data.frag.createElement(nodeName);
return 'c("' + nodeName + '")';
Expand Down

0 comments on commit 0478d1c

Please sign in to comment.