Typo; I meant that searching for $().find("[foobar]") doesn't work.

On Aug 9, 9:11 pm, David <[email protected]> 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 <[email protected]> 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 [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