Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validator throws JS error on validating input with double quote in its name attribute value #6596

Closed
veselints opened this issue Oct 8, 2021 · 1 comment
Assignees
Labels
Bug C: Validator FP: Completed Sync status with associated Feedback Item jQuery SEV: Low
Milestone

Comments

@veselints
Copy link
Contributor

Bug report

Validator throws JS error on validating input with double quote in its name attribute value.

This is a regression introduced with R3 2021

Note: single quotes are not valid characters for HTML 5 attributes - https://www.w3.org/TR/2011/WD-html5-20110525/syntax.html#attributes-0 - "Attribute names must consist of one or more characters other than the space characters, U+0000 NULL, U+0022 QUOTATION MARK ("), U+0027 APOSTROPHE ('), U+003E GREATER-THAN SIGN (>), U+002F SOLIDUS (/), and U+003D EQUALS SIGN (=) characters, the control characters, and any characters that are not defined by Unicode."

Reproduction of the problem

  1. Run https://dojo.telerik.com/iRUhuNex
  2. Click on Validate button

Current behavior

Syntax error, unrecognized expression: input[name="Field"s Name"]:checked

Expected/desired behavior

No error, validation works as expected

Environment

  • Kendo UI version: 2021.3.914
  • Browser: all
@veselints
Copy link
Contributor Author

@kendo-bot kendo-bot added the FP: Planned Sync status with associated Feedback Item label Oct 8, 2021
@veselints veselints self-assigned this Jan 19, 2022
@kendo-bot kendo-bot added FP: In Development Sync status with associated Feedback Item and removed FP: Planned Sync status with associated Feedback Item labels Jan 19, 2022
@Dimitar-Goshev Dimitar-Goshev added this to the 2022.R1.SP.next milestone Feb 2, 2022
@kendo-bot kendo-bot added FP: Completed Sync status with associated Feedback Item and removed FP: In Development Sync status with associated Feedback Item labels Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug C: Validator FP: Completed Sync status with associated Feedback Item jQuery SEV: Low
Projects
None yet
Development

No branches or pull requests

3 participants