- Issue created by @herved
- Merge request !8963Fix JS error in Drupal.behaviors.activeLinks (escape queryString in selector). → (Closed) created by herved
- Status changed to Needs review
3 months ago 1:17am 29 July 2024 - 🇮🇳India ehsann_95
I have tested the issue, the errors in the console are fixed. Attaching Before and After
Before:
After:
- Status changed to Needs work
3 months ago 1:49pm 29 July 2024 - 🇺🇸United States smustgrave
Not sure the JS test is failing as expected. Test-only feature showed green.
- 🇧🇪Belgium herved
#5, it is, but I force pushed then kind of screwed things up trying to manually run things on gitlab I think...
How can we relaunch it? Thanks - Status changed to Needs review
3 months ago 11:00pm 1 August 2024 - 🇧🇪Belgium herved
Moving back to needs review... The test fails correctly...
It doesn't look like this "Test-only" pipeline even starts/works - Status changed to Needs work
3 months ago 9:00pm 2 August 2024 - 🇧🇪Belgium herved
Oh I just realized now which job you meant, I focused on the wrong one.
https://git.drupalcode.org/issue/drupal-3464340/-/jobs/2320491
This should fail so something is odd indeed, back to needs work. - Status changed to Needs review
3 months ago 2:17pm 10 August 2024 - 🇧🇪Belgium herved
The "Test-only changes" pipeline was broken, should be fixed now with 🐛 Test-only job cannot be run due to wrong dependency Fixed .
I rebased the branch, it should work as expected now but I don't have the rights to run it it seems. - 🇺🇸United States smustgrave
May have to be ran locally as the pipeline is showing as skipped
- Status changed to RTBC
3 months ago 5:57pm 14 August 2024 - 🇺🇸United States smustgrave
1) Drupal\Tests\system\FunctionalJavascript\ActiveLinkTest::testQueryStringQuotes Error: Failed to execute 'querySelectorAll' on 'Document': '[data-drupal-link-system-path="user/2"]:not([hreflang])[data-drupal-link-query='{"check_logged_in":"1","foo":"'"}'],[data-drupal-link-system-path="user/2"][hreflang="en"][data-drupal-link-query='{"check_logged_in":"1","foo":"'"}']' is not a valid selector.
Ran locally and believe this is the correct error to receive so would say test coverage is there.
Manually testing the issue does appear resolved
Believe this one is good to go.
- Status changed to Needs review
3 months ago 2:08pm 15 August 2024 - 🇬🇧United Kingdom longwave UK
Should we be using
CSS.escape
instead of a custom regex? https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape_static - 🇧🇪Belgium herved
#12, yes you're right, we should.
I just tested with all kind of chars andCSS.escape
handles everything, the regex replace doesn't and only handles'
(there are more chars to escape). - Status changed to Needs work
3 months ago 9:18pm 15 August 2024 - Status changed to Needs review
3 months ago 10:12pm 15 August 2024 - Status changed to RTBC
2 months ago 12:30pm 20 August 2024 - Status changed to Needs work
2 months ago 1:37pm 20 August 2024 - Status changed to Needs review
2 months ago 4:50pm 20 August 2024 - Status changed to Needs work
2 months ago 7:24pm 20 August 2024 - 🇫🇷France nod_ Lille
we can add back the queryString variable, shoving everything in the string is not very nice to read
- Status changed to Needs review
about 2 months ago 5:35pm 11 September 2024 - Status changed to RTBC
about 2 months ago 8:02pm 11 September 2024 - Status changed to Fixed
about 2 months ago 7:51am 12 September 2024 - 🇫🇷France nod_ Lille
Committed and pushed 91cd1ab5e49 to 11.x and 6f437449b19 to 10.4.x. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.