Well, no, it's the same issue. The syntax is being flagged as invalid
and it's throwing an exception to let you know about the invalid
syntax.

--John



On Mon, Feb 2, 2009 at 12:47 PM, Shawphy <[email protected]> wrote:
>
> According to the doc:
> http://docs.jquery.com/Traversing/is
> "If no element fits, or the expression is not valid, then the response
> will be 'false'."
> But in this test case, I have to use "try catch" because of the error.
> Maybe an another bug?
>
> On Feb 2, 6:25 am, John Resig <[email protected]> wrote:
>> All the characters that are failing here:
>> ~(+[>,
>>
>> are all ones that are matched in the main chunker expression in Sizzle:
>> [^ >+~,(\[]
>>
>> I'm trying to think if there might be a better workaround here. I
>> don't think it's a *huge* priority since these selectors are so
>> bizarre to begin with, but I would like to get it fixed.
>>
>> Thanks for the test case!
>>
>> Also, do you think you could file a bug on it? 
>> Thanks.http://dev.jquery.com/newticket
>>
>> --John
>>
>> On Sun, Feb 1, 2009 at 11:31 AM, Shawphy <[email protected]> wrote:
>>
>> > Firstly,I admit that I would be so crazy.
>> > I tested ALL the special characters on my keyboard which are ~...@#$%^&*
>> > ()_+-=[]\{}|;':"/.,?><
>> > I removed < and " because they will break the page.
>> > And I know w3c says "ID and NAME tokens must begin with a letter ([A-
>> > Za-z]) and may be followed by any number of letters, digits ([0-9]),
>> > hyphens ("-"), underscores ("_"), colons (":"), and periods (".").".
>> > (http://www.w3.org/TR/html4/types.html#h-6.2)
>> > I did this just because I am so curious about whether jQuery 1.2.6 and
>> > jQuery 1.3.1 will pass the test.
>>
>> > the following addresses are the tests:
>> >http://shawphy.com/demo/selector/jQuery-1-2-6-selector-test.html
>> >http://shawphy.com/demo/selector/jQuery-1-3-1-selector-test.html
>>
>> > In jQuery 1.2.6,elements with these IDs fail in the test:
>>
>> > te\st
>> > te\
>> > \st
>>
>> > In jQuery 1.3.1,elements with these IDs fail in the test:
>>
>> > te~st
>> > te(st
>> > te+st
>> > te[st
>> > te\st
>> > te>st
>> > te,st
>> > te~
>> > te(
>> > te+
>> > te[
>> > te\
>> > te>
>> > te,
>> > ~st
>> > (st
>> > +st
>> > [st
>> > \st
>> >>st
>> > ,st
>>
>> > If Sizzle fix these ,it will be so slow, will it ?
>> > I post this mail  just for knowing which of them will be fixed?All or
>> > some of them?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to