/    Sign up×
Community /Pin to ProfileBookmark

Raise awareness of E4X – XML in JavaScript

Hello chappies.

Back in 2005, a new standard was brought out to extend JavaScript (ECMAScript) by adding a new “XML” data type:
[url]http://www.ecma-international.org/publications/standards/Ecma-357.htm[/url]
[url]http://en.wikipedia.org/wiki/E4x[/url]

This would allow direct input of XML into JavaScript and allow for querying with XQuery. For example:

[CODE]var sales = <sales vendor=”John”>
<item type=”peas” price=”4″ quantity=”6″/>
<item type=”carrot” price=”3″ quantity=”10″/>
<item type=”chips” price=”5″ quantity=”3″/>
</sales>;
alert( sales.item.(@type == “carrot”).@quantity );[/CODE]

Currently [B](four years later!)[/B], only [URL=”http://www.w3schools.com/e4x/tryit.asp?filename=trye4x_demo”]Firefox supports this standard[/URL]. Even though it’s an official standard and has been for four years. I can’t think why, for the life of me.

Please help me push support by voting for support in Chromium and Safari’s bug trackers:
[url]http://code.google.com/p/chromium/issues/detail?id=30975[/url]
[url]https://bugs.webkit.org/show_bug.cgi?id=5381[/url]

Thanks ?
Robin.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@MikeumusDec 30.2009 — I have heard of this standard before and love it as well. It is a shame that only Firefox has adopted it.

Thanks for reminding me of it!

Peace & Love,

Michael D.Mooring
Copy linkTweet thisAlerts:
@nottRobinauthorDec 30.2009 — No problem. So glad someone else agrees ?

Further to my post above, I don't think Opera have a bug tracker system, but you can comment on this blog post

Robin.
Copy linkTweet thisAlerts:
@nottRobinauthorDec 31.2009 — I saw that, but the bug wizard only allows submitting of new issues, and the form is tailored very much towards errors in the browser. Plus we do know they're already working on it. So I thought a comment to their blog would be a better way of showing support for E4X's implementation.
×

Success!

Help @nottRobin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...