I tried:
$("NS|MyElement",myDOMDocument);
but that doesn't seem to work for me either. :-(
dave.methvin wrote:
>
>> Is there a way to pick up namespaced elements in jQuery?
>> e.g., $("namespace:MyElement",myDOMDocument);
>> ...
>> Looking in the jQuery code I can see it uses
>> getElementsByName() and not getElementsByNameNS().
>> Is there a simple solution or does jQuery need to be changed?
>
> I think you'd need to write your own version of jQuery.find and
> jQuery.filter that understood namespaces. Note that the current parser
> tries
> to understand both CSS and XPath selector dialects. The CSS way to specify
> namespaces is NS|tag using the vertical bar, but the XPath way is NS:tag
> with a colon. Both the colon and the vertical bar have meaning in the
> existing parser that complicate trying to add either syntax.
>
--
View this message in context:
http://www.nabble.com/DOM-Namespaces-tf2596424.html#a7247000
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/