Skip to main content

Bug Tracker

Side navigation

#4048 closed bug (invalid)

Opened February 03, 2009 03:40AM UTC

Closed May 14, 2009 01:15AM UTC

the filters for form throw an error

Reported by: pdodge Owned by: john
Priority: major Milestone: 1.3.2
Component: selector Version: 1.3.1
Keywords: unrecognized filter Cc:
Blocked by: Blocking:
Description

While I excute the following expr for each() action, it will throw a error "filter is not a function in line 1938":

$(':input:not(:disabled):not([readonly]):not([type="hidden"]):not(:button):not(:reset):not(:submit)', elem).each(function(){});

It does goes wrong at each input element, but it only throw the error after the last one, otherelse, this expr is available in jquery 1.2;

Attachments (0)
Change History (4)

Changed February 04, 2009 12:05AM UTC by dmethvin comment:1

component: coreselector
owner: → john

Changed February 05, 2009 09:51AM UTC by pdodge comment:2

I am sorry, the essential problem is not this selector, that's the error from the checkbox, as follow:

<input type="checkbox" name="mycheck" value="1">

when execute the script:

elemname='mycheck';

re=$('input[name="'+elemname+'"]').is(":checked");

It will throw the error filter is not a function in line 1938;

this checkbox doesn't throw error while it execute lonely, but it will throw the error as put into a prototype of object, this error is cause by the "is()" method, if replace it with .attr('checked'), that's all right.

Changed February 05, 2009 10:13AM UTC by pdodge comment:3

There is a precondition, I have rewrited the ":" expression like this:

$.extend($.expr[':'], {

checked: 'a.checked || a.selected || jQuery.attr(a, "selected")',

});

but the error will not happen in jquery 1.2.6;

Changed May 14, 2009 01:15AM UTC by dmethvin comment:4

resolution: → invalid
status: newclosed