3 ms·
JavaScript Trickshot: E4X
- pkmays 15y agoReading 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.
- tlb 15y agoI never saw the advantage over parsing a string, like toXML('<foo><bar/></foo>').
- robocat 15y ago> 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/Statements/for_each...in https://developer.mozilla.org/en/JavaScript/Reference/Statem...