I get an error in jQuery when I do this:

<div>
  <span exclude="true"><span foo="bar">not me</span></span>
  <span foo="baz">me</span>
</div>

$('span').filter('[EMAIL PROTECTED]:not([EMAIL PROTECTED]"true"]>*)');

however, I don't get the error with:

$('span').filter('[EMAIL PROTECTED]:not([EMAIL PROTECTED]>*)');

which is basically the same, except that i removed the value for the "exclude" attribute. The error is:

'1' is null or not an object

thrown from line 698:

// :not() is a special case that can be optomized by
 // keeping it out of the _expression_ list
 if ( m[1] == ":" && m[2] == "not" )

where:
 m = re.exec(t)
 re =  /^([:.#]*)([a-z*_-][a-z0-9_-]*)/i
 t = "([EMAIL PROTECTED]"true\"]>*)"

Seems like it could be a bug where "not" can't handle attribute values or something. I didn't find this in the bugs but I have a hard time navigating them. Can anyone confirm or point me to the bug report?

I appreciate it,

-brito




_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to