I took great interest in Sylvain Zimmer’s optimized version of Prototype’s $$
function, since I’ve been working on something very similar recently. Sylvain’s version uses more workmanlike string parsing; mine uses XPath. Each approach has its strengths and weaknesses.
I’d welcome work on improving JavaScript as a language and browser implementations to support further application‐controlled sandboxing and data hiding. The same‐domain policy is far too coarse grained a solution for the applications we’d like to be able to write.