From 979809c5a80aaf26bf7e3406a2e361e809f9b132 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Fri, 13 Jul 2018 00:35:08 -0400 Subject: Manipulation: Properly detect HTML elements with single-character names Fixes gh-4124 Closes gh-4125 --- src/core/var/rsingleTag.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/var/rsingleTag.js b/src/core/var/rsingleTag.js index 4d6e8a0ac..340b80db0 100644 --- a/src/core/var/rsingleTag.js +++ b/src/core/var/rsingleTag.js @@ -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 ); } ); -- cgit v1.2.3