Hacker News new | ask | show | jobs
JavaScript Trickshot: E4X (ilker.de)
6 points by sofarsogood 5207 days ago
3 comments

> Oh, E4X is an official ECMA Standard, by the way.

I just noticed in passing this comment on MDN:

"Note: for each...in is part of the ECMA-357 (E4X) standard, which is not widely supported by non-Mozilla browsers, not part of the ECMAScript standard."

https://developer.mozilla.org/en/JavaScript/Reference/Statem...

Reading the E4X spec, it says the XML stuff will be folded into future standards. That obviously has not come to pass. I'm guessing JSON is the reason.
I never saw the advantage over parsing a string, like toXML('<foo><bar/></foo>').