aboutsummaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLeonardo Braga <leonardo.braga@gmail.com>2015-01-04 17:48:35 -0500
committerOleg Gaidarenko <markelog@gmail.com>2015-01-13 07:42:52 +0300
commit534f13025aeb59a7d5893ce62efafa0b066a4934 (patch)
treea27b9d3358052ccdc273921c9d9ee74a6bd37a9f /src/core
parenta4133ffafa6ac43b3aa22bc4edb4444b09f5250c (diff)
downloadjquery-534f13025aeb59a7d5893ce62efafa0b066a4934.tar.gz
jquery-534f13025aeb59a7d5893ce62efafa0b066a4934.zip
Core: add support to tag-hyphenated elements
Ref #1987
Diffstat (limited to 'src/core')
-rw-r--r--src/core/var/rsingleTag.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/var/rsingleTag.js b/src/core/var/rsingleTag.js
index 7e7090b77..a8176dc64 100644
--- a/src/core/var/rsingleTag.js
+++ b/src/core/var/rsingleTag.js
@@ -1,4 +1,4 @@
define(function() {
// Match a standalone tag
- return (/^<(\w+)\s*\/?>(?:<\/\1>|)$/);
+ return (/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/);
});