Closed imjoshdean closed 10 years ago
@imjoshdean puzzled as to why you're allowing the vertical bar |
as a valid character?
@WanderingZombie You're right, the proper regex for that should be
/([\w\-]|[\w\:])+/g
Fixing.
@imjoshdean
This could also work, I think:
/[\w\-\w\:]+/g
Would you also consider to update the printshiv version? Thx.
@aFarkas Consider it done. Also, that does work and is a little shorter.
@aFarkas /[\w\-:]+/g
would be the winner on brevity I think?
@WanderingZombie
Yes. Can I have a PR!?! :-D
createDocumentFragment
doesn't support namespaced tag names such as "mj:pane." This can be fixed by changingto
This is a bit more elegant solution than proposed in #115 as that allowed anything to be tags whereas this just allowed hyphenated tags and namespaced tags.