[jQuery] jQuery support for namespace attributes

2006-11-15 Thread Tony Collins
Klaus Hartlwrote: I think, the correct way to select namespaced elements in CSS is this: table[my|data-url] So in jQuery I guess it would be: $('table[my|@data-url]') There is another recent thread discussing support for namespaces... I understand the CSS selector and have read the

Re: [jQuery] jQuery support for namespace attributes

2006-11-15 Thread Jörn Zaefferer
I understand the CSS selector and have read the other thread but a true namespace selection based on xpath syntax doesn't work. 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

Re: [jQuery] jQuery support for namespace attributes

2006-11-15 Thread Stephen Woodbridge
Klaus Hartl wrote: Stephen Woodbridge schrieb: Jörn Zaefferer wrote: I understand the CSS selector and have read the other thread but a true namespace selection based on xpath syntax doesn't work. As for writing a plug-in, I believe the issue could be corrected with a change to a regular

Re: [jQuery] jQuery support for namespace attributes

2006-11-15 Thread Krzysztof FF
in context: http://www.nabble.com/jQuery-support-for-namespace-attributes-tf2636394.html#a7360528 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery support for namespace attributes

2006-11-15 Thread Dave Methvin
In an expression like this: myns|[EMAIL PROTECTED]|attr=whatever] How does myns get associated with the actual XML namespace URI? getElementByTagNameNS needs the URI, not the name. I have not needed namespaces before so I am not familiar with how that would work. As for how much code it takes,

[jQuery] jQuery support for namespace attributes

2006-11-14 Thread Antonio Collins
Hello all, Are there any plans to add support for namespace qualified attribute selectors? This would would allow the following code to work with the example xhtml doc. Script: $('[EMAIL PROTECTED]:data-url]'); Doc: html xmlns=http://www.w3.org/1999/xhtml; xmlns:my=urn:my-stuff ... table

Re: [jQuery] jQuery support for namespace attributes

2006-11-14 Thread Klaus Hartl
Antonio Collins schrieb: Hello all, Are there any plans to add support for namespace qualified attribute selectors? This would would allow the following code to work with the example xhtml doc. Script: $('[EMAIL PROTECTED]:data-url]'); I think, the correct way to select namespaced