Hey Matt,
Matt a écrit :
> I was recently working on a web application and I needed to
> collect nodes in an XHR request's responseXML property. I figured as
> this object also followed the DOM specification that it would work for
> the Element.getElementsBySelector function but unfortunately this
> returned no results. Any ideas? This could definitely be a great
It doesn't work because we extend HTMLElement, not Element (the DOM
interface), which does not lend itself to extension at all.
> leverage for prototype, the XPATH 'standard' is roughly supported.
I'm not sure about what you mean here by "roughly" ("almost everywhere"
or "barely anywhere" ;-)).
At any rate, I don't believe Core would be interested in implementing an
extraction layer over *any* DOM, including XML DOM, if only because XML,
as a data format for AJAX responses, is dead in the water. Hardly
anybody bothers to deal with it on the client side, when formats such as
JSON are so much easier, and faster, to deal with.
However, if someone wants to come up with a tested add-on, please do!
--
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---