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

Supports tag names with hyphens like foo-bar. #124

Closed justinbmeyer closed 11 years ago

justinbmeyer commented 11 years ago

This fixes Issue #123. If someone provides a tag name like "tag-name", the current document.createDocumentFragment only creates a "tag" and "name" element. This fixes the regular expression used to match against the joined elements array.

paulirish commented 11 years ago

Sounds good. Handles custom elements correctly

cc @ebidel

ebidel commented 11 years ago

:heart: