Comment #64 on issue 235 by [email protected]: Support the
Javascript E4X extension
http://code.google.com/p/v8/issues/detail?id=235
@prettyrobots.com
XML was a fad and EX4 spoke to that fad
An inept attempt at petty politics. XML as well as general DOM based data
is here to stay - accept it and move on. It's not exactly rocket science
is it?
@brettz9, @renat.zubairov
I hate the DOM.
Its' slow clunky, obtuse and badly designed. No-one who has coded
seriously in E4X would ever code to the DOM API by choice - the DOM is the
web 10 years ago:
Why would you ever type:
var elem = node.getElementById("childId");
When you can just type:
var elem = node.childId;
Why would you ever choose to hack a missing DOM API call like:
var list = node.getElementsByAttribute("class","myclass");
Rather than:
var list = node.(@class="myclass");
Why on earth would you choose to use:
var ns = "http://www.w3.org/2000/svg";
var array = node.getElementsByTagNameNS("svg", ns);
when I could just type:
var ns = namespace("http://www.w3.org/2000/svg");
var array = node.ns::svg;
Petty (and inaccurate) politics aside, this is such a non-issue - E4X in
Firefox is scarily fast, is simple to learn and elegant to use.
N
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev