| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
Closes gh-4511
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
An optimization added in jquery/sizzle#431 skips the temporary IDs for selectors
not using child or descendant combinators. For sibling combinators, though, this
pushes a selector with a leading combinator to qSA directly which crashes and
falls back to a slower Sizzle route.
This commit makes selectors with leading combinators not skip the selector
rewriting. Note that after jquery/jquery#4454 & jquery/sizzle#453, all modern
browsers other than Edge leverage the :scope pseudo-class, avoiding temporary
id attributes.
Closes gh-4509
Ref jquery/sizzle#431
|
|
|
|
|
| |
Saves 20 bytes.
Closes gh-4504
|
|
|
|
|
|
|
|
|
| |
IE/Edge sometimes crash when comparing documents between frames using the strict
equality operator (`===` & `!==`). Funnily enough, shallow comparisons
(`==` & `!=`) work without crashing.
Fixes gh-4441
Closes gh-4471
|
|
|
| |
Closes gh-4473
|
|
|
|
|
|
|
|
|
|
|
| |
With new selector code doing less convoluted support tests, it was possible
to extract a lot of logic out of setDocument & also reduce size.
This commit also backports jquery/sizzle#439 that was reverted by mistake
during a switch from JSHint + JSCS to ESLint.
Closes gh-4462
Ref jquery/sizzle#442
Ref jquery/sizzle#439
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The `:scope` pseudo-class[1] has surprisingly good browser support: Chrome,
Firefox & Safari have supported if for a long time; only IE & Edge lack support.
This commit leverages this pseudo-class to get rid of the ID hack in most cases.
Adding a temporary ID may cause layout thrashing which was reported a few times
in [the past.
We can't completely eliminate the ID hack in modern browses as sibling selectors
require us to change context to the parent and then `:scope` stops applying to
what we'd like. But it'd still improve performance in the vast majority of
cases.
[1] https://developer.mozilla.org/en-US/docs/Web/CSS/:scope
Fixes gh-4453
Closes gh-4454
Ref gh-4332
Ref jquery/sizzle#405
|
|
|
|
|
|
|
| |
Due to a faulty IE 8 workaround removal, the fast path qSA mode was skipped
when jQuery's find was called on an element node - i.e. in most cases. 😱
Ref gh-4395
Closes gh-4452
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit removes Sizzle from jQuery, inlining its code & removing obsolete
workarounds where applicable.
The selector-native module has been removed. Further work on the selector
module may decrease the size enough that it will no longer be necessary. If
it turns out it's still useful, we'll reinstate it but the code will look
different anyway as we'll want to share as much code as possible with
the existing selector module.
The Sizzle AUTHORS.txt file has been merged with the jQuery one - people are
sorted by their first contributions to either of the two repositories.
The commit reduces the gzipped jQuery size by 1460 bytes compared to master.
Closes gh-4395
|
|
|
|
|
|
| |
Use eslint pragmas, fix new errors, etc
Closes gh-3148
|
|
|
|
| |
Fixes gh-2056
|
|
|
|
|
|
| |
AMD specification requires the factory argument be defined.
Close gh-2179
|
| |
|
| |
|
|
|
|
| |
the jQuery build process.
|
|
|
|
| |
more-appropriate files, in jQuery itself.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
have data). That broke jQuery.unique() (so we're now using the unique from Sizzle). Using Sizzle's unique (which also sorts in document order) changed how add, andSelf, parents, nextAll, prevAll, and siblings work. after and before were changed to not use .add() (in order to guarantee their position in the jQuery set). Also, jQuery.data(elem) was updated to return that element's data object (instead of its ID).
$("<div/>").after("<span/>")
=> [ div, span ]
(calling after on a disconnected DOM node adds the nodes to the end of the jQuery set)
$("<div/>").before("<span/>")
=> [ span, div ]
(calling before on a disconnected DOM node adds the nodes to the beginning of the jQuery set)
$("div").add("span")
=> [ div, span, span, div, span ]
(results now come out in document order)
$("div").find("code").andSelf();
=> [ div, code, code ]
(results now come out in document order)
Same goes for .parents(), .nextAll(), .prevAll(), and .siblings().
Exception: .parents() will still return the results in reverse document order.
jQuery.data(elem)
=> { object of data }
(no longer returns the unique ID assigned to the node)
|
| |
|
| |
|
|
|
|
| |
(detected via QUnit's no ?noglobals)
|
|
|
|
| |
with the spec. Fixes jQuery bug #4942.
|
| |
|
|
|
|
| |
RegExp. Fixes jQuery bug #4113.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
fixed tests for :hidden selector in IE6
|
| |
|
| |
|
| |
|
|
|
|
| |
the bullet and assume that the incoming result set has array methods. Un-fixes jQuery bug #4250.
|
|
|
|
| |
querySelectorAll-using browsers.
|
|
|
|
| |
3.1 and Caja compatibility. Fixes jQuery bug #4251.
|
|
|
|
| |
- fixing this speeds up > selectors.
|
|
|
|
| |
bug #4250.
|
| |
|
| |
|
|
|
|
| |
(e.g. '#foo p'). Fixes jQuery bug #4236.
|
| |
|
|
|
|
| |
checks - thanks for the tip, Ioseb.
|
|
|
|
| |
Firefox it's much faster than using indexOf.
|
|
|
|
| |
documents. Fixes jQuery bug #4167.
|
|
|
|
| |
jQuery bug #4156.
|
| |
|
|
|
|
| |
element is display none, a parent element is display none, or the element has a width of 0. :visible is when the element is not display none and all of its ancesotrs are not display none and its width is larger than 0. Fixes jQuery bugs #1349, #3265, and #3895.
|
|
|
|
| |
tweaked the + and > functions a little bit.
|
|
|
|
| |
Fixes jQuery bug #3913.
|
|
|
|
| |
includes elements that have the ID, as well).
|
|
|
|
| |
another with a weird combination of multiple selectors and filters. Fixes jQuery bug #4101.
|