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

2 posts, 1 answers
  1. Bese
    Bese avatar
    1 posts
    Member since:
    Jan 2011

    Posted 07 Sep 2012 Link to this post

    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:


    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.
  2. Answer
    Alex Gyoshev
    Alex Gyoshev avatar
    2527 posts

    Posted 07 Sep 2012 Link to this post

    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.

    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!
Back to Top