aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authortimmywil <timmywillisn@gmail.com>2012-06-20 16:22:36 -0400
committertimmywil <timmywillisn@gmail.com>2012-06-21 11:38:31 -0400
commit6cdca88eee674e48f9bf0e41fca18f75f32426b7 (patch)
tree9cc9b13a4cb04f587882a13ad67bc75ecfa72edf /src/core.js
parentc20e031058c6210a1ed753f75af80588f076d60d (diff)
downloadjquery-6cdca88eee674e48f9bf0e41fca18f75f32426b7.tar.gz
jquery-6cdca88eee674e48f9bf0e41fca18f75f32426b7.zip
Restore rhtmlString to its original form. 1.9 will come with starts-with html matching. For now, we are warning against broad use of jQuery() to parse html.
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core.js b/src/core.js
index 1bf7e5603..c0113a190 100644
--- a/src/core.js
+++ b/src/core.js
@@ -41,8 +41,7 @@ var
// A simple way to check for HTML strings
// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
- // Ignore html if within quotes "" '' or brackets/parens [] ()
- rhtmlString = /^(?:[^#<\\]*(<[\w\W]+>)(?![^\[]*\])(?![^\(]*\))(?![^']*')(?![^"]*")[^>]*$)/,
+ rhtmlString = /^(?:[^#<]*(<[\w\W]+>)[^>]*$)/,
// Match a standalone tag
rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,