[jQuery] jQuery support for namespace attributes
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Trebuchet MS"><SPAN class=542251814-15112006>Klaus
Hartl wrote:</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS"><SPAN class=542251814-15112006>> </SPAN>I
think, the correct way to select namespaced elements in CSS is this:<SPAN
class=542251814-15112006> </SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS">><SPAN
class=542251814-15112006> </SPAN><BR><SPAN class=542251814-15112006>>
</SPAN>table[my|data-url]<BR><SPAN class=542251814-15112006></SPAN>><SPAN
class=542251814-15112006> </SPAN><BR><SPAN class=542251814-15112006>>
</SPAN>So in jQuery I guess it would be:<BR><SPAN
class=542251814-15112006></SPAN>><SPAN
class=542251814-15112006> </SPAN><BR><SPAN class=542251814-15112006>>
</SPAN>$('table[my|@data-url]')<BR><SPAN
class=542251814-15112006></SPAN>><BR><SPAN class=542251814-15112006>>
</SPAN>There is another recent thread discussing support for
namespaces...</FONT></DIV>
<DIV><FONT face="Trebuchet MS"></FONT> </DIV>
<DIV><SPAN class=542251814-15112006><FONT face="Trebuchet MS">I understand the
CSS selector and have read the other thread but a true namespace selection based
on xpath syntax doesn't work. </FONT></SPAN><SPAN
class=542251814-15112006><FONT face="Trebuchet MS">As for writing a plug-in, I
believe the issue could be corrected with a change to a regular
expression. But, reg exps are, by their nature, difficult for me
to tinker with, and I can't figure out which regular expression is used for
node and attribute filtering.</FONT></SPAN></DIV>
<DIV><SPAN class=542251814-15112006><FONT
face="Trebuchet MS"></FONT></SPAN> </DIV>
<DIV><SPAN class=542251814-15112006><FONT face="Trebuchet MS">I asked about this
back in September and am asking again because I believe better xpath support
would improve jQuery's handling of xml docs as well as xhtml
pages.</FONT></SPAN></DIV></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/