forked from jquery/jquery
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from jquery/master
Update upstream
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
define( function() { | ||
"use strict"; | ||
|
||
// Match a standalone tag | ||
// rsingleTag matches a string consisting of a single HTML element with no attributes | ||
// and captures the element's name | ||
return ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
define( function() { | ||
"use strict"; | ||
|
||
return ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i ); | ||
// rtagName captures the name from the first start tag in a string of HTML | ||
// https://html.spec.whatwg.org/multipage/syntax.html#tag-open-state | ||
// https://html.spec.whatwg.org/multipage/syntax.html#tag-name-state | ||
return ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i ); | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters