Typo; I meant that searching for $().find("[foobar]") doesn't work.
On Aug 9, 9:11 pm, David <kar...@csail.mit.edu> wrote: > So if I understand your example correctly, you are suggesting that > jquery just ignores the namespace prefix in a tag---that if you want > to find said tag, you just query for it without the namespace prefix. > > However, the same does not appear to be true for attributes---ie, if I > add attribute ex:foobar to a tag, then search for $().find("foobar"), > it does not match. > > On Aug 9, 8:03 pm, DBJDBJ <dbj...@gmail.com> wrote: > > > var $xml = $("<x:root xmlns:x='uri' xmlns:y='uir2' ><x:node > > x:name='n1'>No </x:node><y:node>namespaces</y:node></x:root>"); > > > $xml.find("x:node").text() > > /* > > > */ > > $xml.find("node").text() > > /* > > No namespaces > > */ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---