git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Landing tweak from 'haruka' that fixes non-pixel fontSize values in IE. Fixes #760.
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
addff6b
..
cdd7851
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-32,7
+32,7
@@
var jQuery = function( selector, context ) {
rtrim = /^\s+|\s+$/g,
// Match a standalone tag
rtrim = /^\s+|\s+$/g,
// Match a standalone tag
- rsingleTag = /^<(\w+)\s*\/?>$/,
+ rsingleTag = /<(\w+)\s*\/?>(?:<\/\1>)?$/,
// Keep a UserAgent string for use with jQuery.browser
userAgent = navigator.userAgent.toLowerCase(),
// Keep a UserAgent string for use with jQuery.browser
userAgent = navigator.userAgent.toLowerCase(),
@@
-56,7
+56,7
@@
jQuery.fn = jQuery.prototype = {
// Handle $(DOMElement)
if ( selector.nodeType ) {
this.context = this[0] = selector;
// Handle $(DOMElement)
if ( selector.nodeType ) {
this.context = this[0] = selector;
- this.length++;
+ this.length = 1;
return this;
}
return this;
}
@@
-96,7
+96,7
@@
jQuery.fn = jQuery.prototype = {
}
// Otherwise, we inject the element directly into the jQuery object
}
// Otherwise, we inject the element directly into the jQuery object
- this.length++;
+ this.length = 1;
this[0] = elem;
}
this[0] = elem;
}