aboutsummaryrefslogtreecommitdiff
path: root/js/src/dom/selector-engine.js
AgeCommit message (Collapse)AuthorFilesLines
2024-02-18Selector Engine: fix multiple IDs (#39201)GeoSot1-2/+2
* fix: regression of #38989 * Add unit test in selector-engine.spec.js --------- Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2023-09-13Fix collapse multiple ids target (#38989)Louis-Maxime Piton1-2/+2
2023-03-22Remove version comment from JavaScript src files (#38294)GeoSot1-1/+1
2022-12-24Release v5.3.0-alpha1 (#37661)XhmikosR1-1/+1
* Bump version to 5.3.0-alpha1 * Dist * Add docs versions updates * Update note in homepage hero Co-authored-by: Mark Otto <[email protected]>
2022-11-22Merge branch 'main' into prepare-523XhmikosR1-4/+47
2022-11-21Bump version to 5.2.3XhmikosR1-1/+1
2022-11-07ref: refactor `getSelector` not to be exported (#37438)GeoSot1-32/+27
2022-11-07Properly escape IDs in getSelector() to handle weird IDs (#35565) (#35566)Pierre Souchay1-1/+2
2022-11-06Move `getElementFromSelector` & `getSelectorFromElement` to SelectorEngine ↵GeoSot1-0/+47
(#36027) * Move `getElementFromSelector` & getSelectorFromElement` inside selector-engine.js, in order to use SelectorEngine methods, avoiding raw querySelector usage * add `getMultipleElementsFromSelector` helper Co-authored-by: Julien Déramond <[email protected]>
2022-10-26Use explicit imports in our javascript source files (#36854)GeoSot1-1/+1
2022-10-03Release v5.2.2 (#37236)XhmikosR1-1/+1
* Bump version to v5.2.2 * Dist
2022-09-07Release v5.2.1 (#37098)XhmikosR1-1/+1
* Bump version to v5.2.1. * Dist
2022-07-19Release v5.2.0 (#36768)XhmikosR1-1/+1
* Bump version to 5.2.0 * Dist * Update masthead.html
2022-05-13Prepare v5.2.0-beta1Mark Otto1-1/+1
2022-01-30Dropdown: get dropdown's parent in one placeGeoSot1-1/+1
2022-01-30Change selector-engine.js `parents` method to utilize better js native ↵GeoSot1-9/+4
methods (#35684) Co-authored-by: XhmikosR <[email protected]>
2022-01-29SelectorEngine: remove moot spaceXhmikosR1-1/+1
2021-10-13JS: minor refactoring (#35183)XhmikosR1-7/+3
* add missing comments * shorten block comments * reorder constants * reorder public/private methods * sort exports alphabetically in util/index.js * fix a couple of typos
2021-10-09Bump version to 5.1.3.XhmikosR1-1/+1
2021-10-05Release v5.1.2 (#35114)XhmikosR1-1/+1
2021-09-07Release v5.1.1 (#34869)v5.1.1XhmikosR1-1/+1
* Prepare v5.1.1. * Dist
2021-08-04Prepare v5.1.0. (#34674)v5.1.0XhmikosR1-1/+1
2021-07-27Add shift-tab keyboard support for dialogs (modal & Offcanvas components) ↵Ryan Berliner1-0/+17
(#33865) * consolidate dialog focus trap logic * add shift-tab support to focustrap * remove redundant null check of trap element Co-authored-by: GeoSot <[email protected]> * remove area support forom focusableChildren * fix no expectations warning in focustrap tests Co-authored-by: GeoSot <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-06-22Release v5.0.2 (#34276)v5.0.2XhmikosR1-1/+1
* Bump version to v5.0.2. * Dist
2021-05-13Release v5.0.1 (#33972)v5.0.1XhmikosR1-1/+1
* Bump version to 5.0.1. * Dist
2021-05-05Release v5.0.0 (#33647)v5.0.0XhmikosR1-1/+1
* Bump version to 5.0.0 * Fix npm tag * Dist
2021-03-23Release v5.0.0-beta3 (#33439)v5.0.0-beta3XhmikosR1-1/+1
2021-02-10Release v5.0.0-beta2 (#32467)v5.0.0-beta2XhmikosR1-1/+1
* Bump version to 5.0.0-beta2 * Dist
2020-12-09SelectorEngine: drop variable used once (#32391)XhmikosR1-3/+2
2020-12-07Remove `SelectorEngine.matches()`. (#32339)XhmikosR1-6/+2
It's basically unused.
2020-12-07Prepare v5.0.0-beta1.XhmikosR1-1/+1
2020-11-11Prepare v5.0.0-alpha3 (#32122)v5.0.0-alpha3XhmikosR1-1/+1
2020-11-05Remove the now unneeded polyfills.XhmikosR1-4/+2
2020-09-29Prepare v5.0.0-alpha2. (#31748)v5.0.0-alpha2XhmikosR1-1/+1
2020-06-16Rename "master" to "main". (#31050)XhmikosR1-1/+1
2020-05-13Bump version to 5.0.0-alpha1 (#29925)XhmikosR1-1/+1
Also add v4.5.0 in versions and keep README.md pointing to v4.5.0 so that there are no broken stuff.
2020-04-28Drop closest from SelectorEngine (#30653)Martijn Cuppens1-4/+0
Co-authored-by: XhmikosR <[email protected]>
2020-03-25fix: remove make array util function (#30430)Johann-S1-5/+4
2020-03-23Use next dropdown menu instead of first of the parentMartijn Cuppens1-0/+14
2020-03-18Remove IE compatibility JS codeJohann-S1-3/+3
2020-03-09`prev()` function fails when non-element nodes are present (#30117)Martijn Cuppens1-7/+5
The `prev()` function doesn't take nodes other than elements into account. Also we could simplify things a lot using the `previousElementSibling` property. This property isn't fully supported in IE, it only works for elements, but since the `element` variable is an element, we can safely use it here. I've also added an additional test. I don't think we had this issue in v4, since we relied on jQuery back then. Ref. https://developer.mozilla.org/en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling
2019-07-23rewrite unit tests for selector engineJohann-S1-24/+2
2019-05-08Rename `eventHandler` and `selectorEngine` files.XhmikosR1-0/+97