This is a migrated thread and some comments may be shown as answers.

Error on validating field if id starts with 'first' or 'last' (jQuery 1.8.0)

1 Answer 60 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Bese
Top achievements
Rank 1
Bese asked on 07 Sep 2012, 08:11 PM
Dear Developers,

there is a bug in _validate method of the Editable widget. There is a line in the code (ln. 30578, kendo.web.js v2012.2.710) which tries to retrieve the input element:

input = $(':input[' + kendo.attr("bind") + '="' + (isBoolean ? 'checked:' : 'value:') + e.field + '"]', that.element);

If the field's name starts with 'first' or 'last' (e.g. first_name) the computed selector will be:

':input[data-bind="value:first_name"]'

In that case jQuery 1.8.0 can not find the element because the css parser throws an exception:

Uncaught Error: Syntax error, unrecognized expression: :input[data-bind="value

Obviously with jQuery 1.7.1 there is no exception.
This may be unconfortable in the future.

1 Answer, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 07 Sep 2012, 08:26 PM
Hello Bese,

We already caught this problem in our tests and notified the jQuery team about it. The bug is in the Sizzle selector engine and has been fixed in jQuery 1.8.1.

Regards,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Validation
Asked by
Bese
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or