Skip to content

Validator throws JS error on validating input with single quote in its name attribute value #6460

@Dimitar-Goshev

Description

@Dimitar-Goshev

Bug report

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

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/@Dimitar-Goshev/araWovUX
  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.2.616
  • Browser: all

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions