mirror of
https://github.com/jquery/jquery.git
synced 2026-02-16 09:15:57 -05:00
Manipulation: Bring tagname regexes up to spec
Fixes gh-2005 Closes gh-2634
This commit is contained in:
committed by
Richard Gibson
parent
df822caff0
commit
fb9472c7fb
@@ -1,5 +1,5 @@
|
||||
define( function() {
|
||||
|
||||
// Match a standalone tag
|
||||
return ( /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/ );
|
||||
return ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user