E4X (Ecma-357) is an ECMAScript extension that adds XML literals as first-class primitives. This is amazing, but only with support for Mozilla and Adobe (without support for V8 and IE), E4X practically does not work from the point of view of web developers, which should support users with any modern browser.
What else is being done to inject XML literals into JavaScript? Is there a way to get something similar to XML literals or E4X in JavaScript that anyone is working on? Maybe some plugins for frameworks?
I came across LunaScript the other day (asana.com/Luna), which implemented XML literals in its JavaScript-like language. This is great, but I will probably never work in Asana and therefore I will never write LunaScript.
javascript xml e4x primitive
Chrisoh
source share