aFarkas / html5shiv

This script is the defacto way to enable use of HTML5 sectioning elements in legacy Internet Explorer.
http://paulirish.com/2011/the-history-of-the-html5-shiv/
9.89k stars 2.56k forks source link

Support custom elements that contain ':' or '-' #115

Closed arciisine closed 10 years ago

arciisine commented 11 years ago

I am working with tags that contain hyphens or colons (for namespacing), and currently the window.html5.elements, is limited to only elements that match the regex '\w+' (which splits on all punctuation including commas, hyphens and colons) . I would ask that the element unrolling regex match on '[^,]+' (only hitting commas), so it can pick up the colons and hyphens.