git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jquery core: closes #3034. Ids with '-' weren't handled by quickExpr.
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
478de97
..
c90f58d
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-21,7
+21,7
@@
var jQuery = window.jQuery = window.$ = function( selector, context ) {
// A simple way to check for HTML strings or ID strings
// (both of which we optimize for)
// A simple way to check for HTML strings or ID strings
// (both of which we optimize for)
-var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,
+var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
// Is it a simple selector
isSimple = /^.[^:#\[\.]*$/,
// Is it a simple selector
isSimple = /^.[^:#\[\.]*$/,
@@
-1244,7
+1244,8
@@
jQuery.extend({
styleFloat: styleFloat,
readonly: "readOnly",
maxlength: "maxLength",
styleFloat: styleFloat,
readonly: "readOnly",
maxlength: "maxLength",
- cellspacing: "cellSpacing"
+ cellspacing: "cellSpacing",
+ rowspan: "rowSpan"
}
});
}
});