@david
w3c SELECT, correct syntax for name space delimiters is "|" (pipe).
I suppose jQuery could enforce w3c ns handling , but then my little
hacks above will not work. they could internally do :
selector = selector.replace(/\\:/g, "|") ;
before giving selector to Sizzle . But, then my "dbj\\:root" will
become an legal w3c selector syntax : "dbj|root". And then:
$("dbj|root").length < 1 // quiet failure
And "quiet failure" is never a good thing.
Perhaps jQuery can stop all namespace-ing, by doing (something like )
this :
if ( /\\:|\|/g.test( selector ) )
throw new Error(NAMESPACE_ERR, "Namespaces are currently not
supported in jQuery selectors") ;
Or simply implement : http://www.w3.org/TR/selectors-api
Which is not an easy thing to do. Why?
Mainly because of issues *revealed* (also) here :
http://hsivonen.iki.fi/xhtml2-html5-q-and-a/
--DBJ
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---