Ticket #9418 (closed bug: invalid)
Elements with hyphens cannot be created in an XML document
|Reported by:||Hancoque||Owned by:|
Creating new elements in an XML document with hyphens in their names doesn't work using $(...). The regex string saved in the rsingleTag variable uses only \w to evaluate whether createElement() is to be used or not and the alternative method apparently doesn't work with XML documents.
A solution would be to replace \w with [\w\-] in the regex string.