some selectors with meta-characters fail

some selectors with meta-characters fail


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