Problem/Motivation
On a fresh Drupal install, menu link description supports entering <nolink> and <button>.
Start typing the title of a piece of content to select it. You can also enter an internal path such as /node/add or an external URL such as https://example.com. Enter
<front>to link to the front page. Enter<nolink>to display link text only. Enter<button>to display keyboard-accessible link text only.
The fix in #3365954: Firefox error with link validation regex patterns fixes a jQuery issue which allows the validation to work but also fails to account for these valid placeholders.
Steps to reproduce
1. Install a new site with clientside_validation enabled.
2. Go to add a link to a menu.
3. Enter a Menu link title and a Link entry of <nolink>
4. Observe the HTML validation error "Please match the requested format."
Proposed resolution
Add <nolink> and <button> to the clientside_validation regex.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 28.patch | 1.31 KB | zeeshan_khan |
Issue fork clientside_validation-3507911
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
j_s commentedComment #4
shivam_tiwari commented@j_s I checked following issue but I am not getting this. I checked on Drupal 11.0.12 and Clientside Validation 4.1.2.
Comment #5
j_s commentedI tested it right now on simplytest.me using Drupal 11.1.2 and Clientside Validation 4.1.2 and cannot add a menu link with the nolink type. In Chrome and Edge, I get the error described. In Firefox, I don't see the error, but it has the same result of me not being able to actually save the link.
Comment #7
nikunjkotechaComment #10
zeeshan_khan commentedThis issue is not yet fixed I think the code is not yet merged I am facing the same issue in Drupal 11
When I checked the module code I didn't find the fixed code.