mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
63c3af481c
`CSS.supports( "selector(...)" )` has different semantics than selectors passed to `querySelectorAll`. Apart from the fact that the former returns `false` for unrecognized selectors and the latter throws, `qSA` is more forgiving and accepts some invalid selectors, auto-correcting them where needed - for example, mismatched brackers are auto-closed. This behavior difference is breaking for many users. To add to that, a recent CSSWG resolution made `:is()` & `:where()` the only pseudos with forgiving parsing; browsers are in the process of making `:has()` parsing unforgiving. Taking all that into account, we go back to our previous try-catch approach without relying on `CSS.supports( "selector(...)" )`. The only difference is we detect forgiving parsing in `:has()` and mark the selector as buggy. The PR also updates `playwright-webkit` so that we test against a version of WebKit that already has non-forgiving `:has()`. Fixes gh-5194 Closes gh-5207 Ref gh-5206 Ref gh-5098 Ref gh-5107 Ref w3c/csswg-drafts#7676
118 lines
3.2 KiB
JSON
118 lines
3.2 KiB
JSON
{
|
|
"name": "jquery",
|
|
"title": "jQuery",
|
|
"description": "JavaScript library for DOM operations",
|
|
"version": "3.7.0-pre",
|
|
"main": "dist/jquery.js",
|
|
"homepage": "https://jquery.com",
|
|
"author": {
|
|
"name": "OpenJS Foundation and other contributors",
|
|
"url": "https://github.com/jquery/jquery/blob/main/AUTHORS.txt"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/jquery/jquery.git"
|
|
},
|
|
"keywords": [
|
|
"jquery",
|
|
"javascript",
|
|
"browser",
|
|
"library"
|
|
],
|
|
"bugs": {
|
|
"url": "https://github.com/jquery/jquery/issues"
|
|
},
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@babel/core": "7.3.3",
|
|
"@babel/plugin-transform-for-of": "7.2.0",
|
|
"colors": "1.4.0",
|
|
"commitplease": "3.2.0",
|
|
"core-js": "2.6.5",
|
|
"eslint-config-jquery": "3.0.0",
|
|
"grunt": "1.5.3",
|
|
"grunt-babel": "8.0.0",
|
|
"grunt-cli": "1.4.3",
|
|
"grunt-compare-size": "0.4.2",
|
|
"grunt-contrib-uglify": "3.4.0",
|
|
"grunt-contrib-watch": "1.1.0",
|
|
"grunt-eslint": "22.0.0",
|
|
"grunt-git-authors": "3.2.0",
|
|
"grunt-jsonlint": "2.1.2",
|
|
"grunt-karma": "4.0.2",
|
|
"grunt-newer": "1.3.0",
|
|
"grunt-npmcopy": "0.2.0",
|
|
"gzip-js": "0.3.2",
|
|
"husky": "4.2.5",
|
|
"jsdom": "19.0.0",
|
|
"karma": "6.4.1",
|
|
"karma-browserstack-launcher": "1.6.0",
|
|
"karma-chrome-launcher": "3.1.1",
|
|
"karma-firefox-launcher": "2.1.2",
|
|
"karma-ie-launcher": "1.0.0",
|
|
"karma-jsdom-launcher": "12.0.0",
|
|
"karma-qunit": "4.1.2",
|
|
"karma-webkit-launcher": "2.1.0",
|
|
"load-grunt-tasks": "5.1.0",
|
|
"native-promise-only": "0.8.1",
|
|
"playwright-webkit": "1.30.0",
|
|
"promises-aplus-tests": "2.1.2",
|
|
"q": "1.5.1",
|
|
"qunit": "2.9.2",
|
|
"raw-body": "2.3.3",
|
|
"requirejs": "2.3.6",
|
|
"sinon": "2.3.7",
|
|
"strip-json-comments": "2.0.1",
|
|
"testswarm": "1.1.2",
|
|
"uglify-js": "3.4.7"
|
|
},
|
|
"scripts": {
|
|
"build": "npm install && grunt",
|
|
"start": "grunt watch",
|
|
"test:browserless": "grunt && grunt test:slow",
|
|
"test:browser": "grunt && grunt karma:main",
|
|
"test:amd": "grunt && grunt karma:amd",
|
|
"test:no-deprecated": "grunt test:prepare && grunt custom:-deprecated && grunt karma:main",
|
|
"test:selector-native": "grunt test:prepare && grunt custom:-selector && grunt karma:main",
|
|
"test:slim": "grunt test:prepare && grunt custom:slim && grunt karma:main",
|
|
"test": "npm run test:slim && npm run test:no-deprecated && npm run test:selector-native && grunt && grunt test:slow && grunt karma:main && grunt karma:amd",
|
|
"jenkins": "npm run test:browserless"
|
|
},
|
|
"commitplease": {
|
|
"nohook": true,
|
|
"components": [
|
|
"Docs",
|
|
"Tests",
|
|
"Build",
|
|
"Support",
|
|
"Release",
|
|
"Core",
|
|
"Ajax",
|
|
"Attributes",
|
|
"Callbacks",
|
|
"CSS",
|
|
"Data",
|
|
"Deferred",
|
|
"Deprecated",
|
|
"Dimensions",
|
|
"Effects",
|
|
"Event",
|
|
"Manipulation",
|
|
"Offset",
|
|
"Queue",
|
|
"Selector",
|
|
"Serialize",
|
|
"Traversing",
|
|
"Wrap"
|
|
],
|
|
"markerPattern": "^((clos|fix|resolv)(e[sd]|ing))|^(refs?)",
|
|
"ticketPattern": "^((Closes|Fixes) ([a-zA-Z]{2,}-)[0-9]+)|^(Refs? [^#])"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"commit-msg": "commitplease .git/COMMIT_EDITMSG",
|
|
"pre-commit": "grunt lint:newer qunit_fixture"
|
|
}
|
|
}
|
|
}
|