aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Core: Make isAttached work with iOS 10.0-10.2Michał Gołębiowski-Owczarek2019-04-293-5/+20
| | | | | | | | | | | The test for Shadow DOM v1 support has been changed to rely on the presence of `documentElement.getRootNode` as iOS 10.0-10.2 supports `attachShadow` but doesn't support `getRootNode`. No new test is necessary - iOS 10.0 fails lots of our test suite because of this bug. Fixes gh-4356 Closes gh-4360
* Event: Prevent leverageNative from registering duplicate dummy handlersRichard Gibson2019-04-291-5/+5
| | | Closes gh-4353
* Event: Fix handling of multiple async focus eventsRichard Gibson2019-04-292-12/+61
| | | | Fixes gh-4350 Closes gh-4354
* Build: Test on Node.js 12, stop testing on Node.js 6 & 11Michał Gołębiowski-Owczarek2019-04-231-2/+1
| | | | | | (cherry-picked from b8d4712825a26a7f24c2bdb5a71aa3abcd345dfd) Closes gh-4369
* Build: Fix unresolved jQuery reference in finalPropNameMichał Gołębiowski-Owczarek2019-04-172-4/+12
| | | | | | | | | | Also, prevent further similar breakages by changing our ESLint configuration to disallow relying on a global jQuery object in AMD modules. (cherry-picked from 874030583c9b94603de467124420e6c7a1c3c8ac) Fixes gh-4358 Closes gh-4361
* Build: Updating the 3.4-stable version to 3.4.1-preTimmy Willison2019-04-101-1/+1
|
* Release: update AUTHORS.txtTimmy Willison2019-04-091-0/+8
|
* Release: update version to 3.4.0-preTimmy Willison2019-04-091-1/+1
|
* Build: Update Sizzle from 2.3.3 to 2.3.4Michał Gołębiowski-Owczarek2019-04-095-46/+56
| | | | | | | | | (cherry-picked from 0b2c36adb4e2c048318659e4196e0925da10ead2) Fixes gh-1756 Fixes gh-4170 Fixes gh-4249 Closes gh-4345
* Update README.mdTimmy Willison2019-04-021-1/+1
|
* Tests: Make Android Browser 4.0-4.3 dimensions tests greenMichał Gołębiowski-Owczarek2019-03-271-2/+16
| | | | | | | | | | Android Browser disregards td's box-sizing, treating it like it was content-box. Unlike in IE, offsetHeight shares the same issue so there's no easy way to workaround the issue without incurring high size penalty. Let's at least check we get the size as the browser sees it. Also, fix the nearby support comment syntax. Closes gh-4335
* Tests: Make Android Browser 4.0-4.3 AJAX tests greenMichał Gołębiowski-Owczarek2019-03-271-1/+9
| | | | | | | Android Browser versions provided by BrowserStack fail the "prototype collision (constructor)" test while locally fired emulators don't, even when they connect to TestSwarm. Just skip the test there to avoid a red build. Closes gh-4334
* Core: Preserve CSP nonce on scripts with src attribute in DOM manipulationbuddh42019-03-255-3/+46
| | | | | Fixes gh-4323 Closes gh-4328
* Event: Prevent leverageNative from double-firing focusinRichard Gibson2019-03-252-93/+85
| | | | | | Also, reduce size. Closes gh-4329 Ref gh-4279
* Core: Prevent Object.prototype pollution for $.extend( true, ... )Michał Gołębiowski-Owczarek2019-03-252-1/+9
| | | Closes gh-4333
* Event: Leverage native events for focus/blur/click; propagate additional dataRichard Gibson2019-03-205-54/+294
| | | | | | | | | | | | | | | | | | | | | Summary of the changes/fixes: 1. Trigger checkbox and radio click events identically (cherry-picked from b442abacbb8464f0165059e8da734e3143d0721f that was reverted before). 2. Manually trigger a native event before checkbox/radio handlers. 3. Add test coverage for triggering namespaced native-backed events. 4. Propagate extra parameters passed when triggering the click event to the handlers. 5. Intercept and preserve namespaced native-backed events. 6. Leverage native events for focus and blur. 7. Accept that focusin handlers may fire more than once for now. Fixes gh-1741 Fixes gh-3423 Fixes gh-3751 Fixes gh-4139 Closes gh-4279 Ref gh-1367 Ref gh-3494
* CSS: Avoid forcing a reflow in width/height getters unless necessaryMichał Gołębiowski-Owczarek2019-03-182-11/+20
| | | | | | | | Fixes gh-4322 Closes gh-4325 Ref gh-3991 Ref gh-4010 Ref gh-4185 Ref gh-4187
* Build: Run the basic test suite in jsdomMichał Gołębiowski-Owczarek2019-03-115-4/+98
| | | | | | The basic test suite is now run in jsdom on all supported Node.js versions (8, 10 & 11 as of now). Closes gh-4310
* Build: Remove manual QUnit fixture resettingMichał Gołębiowski-Owczarek2019-03-112-5/+1
| | | | | | It was needed when QUnit 1.x one used but we've since upgraded to QUnit 2.x. Closes gh-4312 Ref gh-4307
* Build: Make Promises/A+ tests use the dot reporter instead of the defaultMichał Gołębiowski-Owczarek2019-03-111-5/+6
| | | | | | The default reporter is very verbose as it prints all the test names it encounters. We already use the dot reporter for Karma tests. Closes gh-4313
* Build: Update QUnit from 1.23.1 to 2.9.2Michał Gołębiowski-Owczarek2019-03-0415-4520/+6768
| | | Closes gh-4307
* Build: Run Karma browser tests on Node.js 10 instead of 8Michał Gołębiowski-Owczarek2019-03-041-1/+1
| | | | | | | | Node.js 10 has been in Active LTS since 2018-04-24 and Node.js 8 is now in maintenance mode. See https://github.com/nodejs/Release for more details. Closes gh-4311
* Build: Update jsdom; migrate a test with Symbol polyfill to an iframe testMichał Gołębiowski-Owczarek2019-03-0419-131/+162
| | | | | | | | | | | So far, we've been testing that jQuery element iteration works with polyfilled Symbol & transpiled for-of via a Node test with jsdom with the Symbol global removed. Unfortunately, jsdom now requires Symbol to be present for its internal functionality so such a test is no longer possible. Instead, it's been migrated to an iframe test with transpiled JavaScript. This PR also enables us to use ECMAScript 2017 or newer in Node.js code. Closes gh-4305
* Build: Remove obsolete globals from ESLint configurationMichał Gołębiowski-Owczarek2019-02-193-11/+6
| | | | | We had quite a few obsolete globals declared in various ESLint config files. We also no longer allow to rely on the `noGlobal` & `jQuery` globals in the built file which is not needed. Closes gh-4301
* Build: Update most dependenciesabnud12019-02-193-20/+24
| | | | | | | | | | | | | | | | The only packages not fully updated are: - qunitjs & karma-qunit as that's a QUnit 2.x update that will require some changes and we'll do that later - jsdom as we need to first rewrite the test with the Symbol polyfill - newer jsdom versions don't work with such a hacked Symbol instance - sinon as the v2 -> v7 upgrade requires to update our unit tests - uglify-js & grunt-contrib-uglify as latest uglify-js versions slightly worsen the minified gzipped size Closes gh-4227 Closes gh-4228 Closes gh-4230 Closes gh-4232
* Build: Update test code for compatibility with QUnit 2.x (#4297)abnud12019-02-1838-5435/+10979
| | | | | | | | Also, run `grunt npmcopy` to sync the "external" directory with dependencies from package.json. For example, the Sinon library version didn't match. Ref gh-4234 Closes gh-4297
* Build: Advise to create test cases on JS Bin or CodePen, drop JSFiddleMichał Gołębiowski-Owczarek2019-01-291-1/+1
| | | | | | | | | | JSFiddle doesn't support IE (even 11) anymore so we shouldn't advise users to use it to create test cases. To make people have a choice, add CodePen to the list. Also, link to specific starter templates so that novices don't need to spend time thinking how to set up the basic structure. Closes gh-4289
* Core: Support passing nonce through jQuery.globalEvalMichał Gołębiowski-Owczarek2019-01-218-17/+64
| | | | | | Fixes gh-4278 Closes gh-4280 Ref gh-3541 Ref gh-4269
* Manipulation: Respect script nomodule attribute in DOM manipulationMichał Gołębiowski-Owczarek2019-01-214-2/+34
| | | | | | | | | | | | | PR #3869 added support for `<script type="module">` & some support for the `nomodule` attribute but with no tests for `nomodule` and with the attribute only respected on inline scripts. This commit adds support for source-based scripts as well. It also adds tests for `nomodule`, including making sure legacy browsers execute such scripts as they'd natively do - that's the whole point of `nomodule` scripts, after all. Fixes gh-4281 Closes gh-4282 Ref gh-3871 Ref gh-3869
* Tests: Skip nonce tests in old iOS/Android as wellMichał Gołębiowski-Owczarek2019-01-141-2/+5
| | | | | | | | | | Old iOS & Android Browser versions support script-src but not nonce, making the nonce test impossible to run. Browsers not supporting CSP at all are not a problem as they'll skip script-src restrictions completely. Ref gh-3541 Ref gh-4269 Ref c7c2855ed13f23322c4064407c1ed84561b95738
* Core: Preserve CSP nonce on scripts in DOM manipulationMichał Gołębiowski-Owczarek2019-01-147-1/+68
| | | | Fixes gh-3541 Closes gh-4269
* Tests: Exclude Android 4.x from repeated header names testMichał Gołębiowski-Owczarek2018-12-141-1/+11
| | | | | | | | Android Browser only returns the last value for each header so there's no way for jQuery get all parts. Closes gh-4259 Ref gh-3403 Ref gh-4173
* Manipulation: Restore _evalUrl jQuery.ajax calls to dataType: scriptRichard Gibson2018-12-131-4/+8
| | | | | | IE and iOS <10 XHR transport does not succeed on data: URIs Ref gh-4243 Ref gh-4126 Closes gh-4258
* Manipulation: Only evaluate HTTP-successful script srcRichard Gibson2018-12-122-2/+24
| | | | | Fixes gh-4126 Closes gh-4243
* Core: Tiny efficiency fix to jQuery.extend / jQuery.fn.extend (#4246)Marja Hölttä2018-12-121-6/+8
| | | | | | | | | Read target[name] only when it's needed. In addition to doing the property read-only when needed, this avoids a slow path in V8 (see the issue for more details). Fixes gh-4245 Closes gh-4246
* Tests: fix dimensions tests in testswarmTimmy Willison2018-12-031-1/+5
| | | Close gh-4248
* Dimensions: fall back to offsetWidth/Height for border-box in IETimmy Willison2018-11-273-20/+49
| | | | | | | | - Use getClientRects() to explicitly detect hidden/disconnected elements Close gh-4223 Fixes gh-4102
* Tests: add IE launcher for debugging IE11 on WindowsTimmy Willison2018-11-272-0/+5
|
* Tests: fix ajax test failure; add to header instead of replaceTimmy Willison2018-11-261-1/+1
|
* Ajax: Fix getResponseHeader(key) for IE11Andrei Fangli2018-11-264-5/+16
| | | | | | | | | | | - getResponseHeader(key) combines all header values for the provided key into a single result where values are concatenated by ', '. This does not happen for IE11 since multiple values for the same header are returned on separate lines. This makes the function only return the last value of the header for IE11. - Updated ajax headers test to better cover Object.prototype collisions Close gh-4173 Fixes gh-3403
* Tests: Add Safari 12 & iOS 12 resultsMichał Gołębiowski-Owczarek2018-11-121-6/+6
|
* Tests: Move latest Firefox before Firefox 60 test resultsMichał Gołębiowski-Owczarek2018-11-121-4/+4
|
* Core: Recognize Shadow DOM in attachment checksSaptak Sengupta2018-11-098-15/+138
| | | | | | | Allow `isAttached` to check Shadow DOM for attachment. Fixes gh-3504 Closes gh-3996 Ref gh-3977
* Build: Run tests on Node.js 11 as wellMichał Gołębiowski-Owczarek2018-10-311-0/+1
|
* CSS: Don't read styles.position in the width/height cssHook unless necessaryMichał Gołębiowski-Owczarek2018-10-083-5/+9
| | | | | | | | | | | | Current width/height cssHook reads the computed position style even if not necessary as the browser passes the scrollboxSize support test. That has been changed. This commit also makes the scrollboxSize support test in line with all others (i.e. only return true or false) and changes the variable name in the hook to make the code clearer. Fixes gh-4185 Closes gh-4187
* Tests: Add tests for not auto-appending "px" to CSS Grid propertiesMichał Gołębiowski-Owczarek2018-10-031-0/+50
| | | | | Ref gh-4007 Ref gh-4028 Closes gh-4165
* Tests: Allow Karma to load unminfied sourceRichard Gibson2018-09-074-43/+79
| | | Closes gh-4128
* CSS: Don't auto-append "px" to possibly-unitless CSS grid propertiesBert Zhang2018-08-291-0/+7
| | | | | | This commit adds some CSS grid-related properties to jQuery.cssNumber. Fixes gh-4007
* Tests: use width style instead of SVG width attribute (#4157)Jason Bedard2018-08-201-3/+3
| | | | | The SVG width attribute seems to not support border-box in iOS7. Closes gh-4155
* Tests: Account for the iPad with iOS 11.3 user agentMichał Gołębiowski-Owczarek2018-08-011-1/+1
| | | | | | The user agent of the iPad with iOS 11.3 on BrowserStack is missing the "iPhone" part in the "iPhone OS 11_3" part. This commit makes the iOS regex accept such (probably?) malformed UAs.