Comments for The Browser.Next List
Those are great! I was thinking of fast positioning APIs at one point but somehow got through 10 things without mentioning them.
The lack of any such thing reliably causes no end of pain.Also, the XPath over the HTML DOM is also browser specific. Any chance it'll be fixed? ;-)
Regards
I think your blessed cache is interesting, but there is something I'd rather see: Site/Session persistent compiled JavaScript objects.
We spend a lot of time optimizing the file size for our libraries; as the guys at Plexo discovered, compile time grows non-linearly with file size (complexity, minification won't help much). It would be nice there was a way that we could store some collection of objects in such a way that they were accessible for every page load. That way we don't have to spend processor time rebuilding our TreeViewWidget prototype every time the page loads.
An @import for JavaScript would be great too, rather than always document.writing script tags.
var staticNodeList = [].slice.call(dynamicNodeList, 0);
A prime example is Tino's (nice work!)
Tino, your example works in Firefox, Safari 2, and Opera 9.
Unfortunately, browsers are not required to support Array generics on a Host object. NodeList is a host object. Considering that
Microsoft has dragged their feet every step of the way, it's no surprise that Array Generics don't work with JScript.
What's on my list? Well, since you asked...
Form Serialization in HTML 5 http://dhtmlkitchen.com/rec/FormSerialization.html
URI in ES4 http://dhtmlkitchen.com/rec/URI.html
Data Structures in ES4 (haven't started on this yet)
Date Formatter in ES4 (haven't started on this yet)
Fix for IE: replace(JScript, Tamarin);
Regarding DontEnum, that's an article I'm working on now.
function assertEquals( baseId ) { var src = document.getElementById( baseId + "-source" ); var actual = String(eval( src.textContent || src.innerText )); var expectedEl = document.getElementById( baseId + "-expected" ); var expected = exp...
XPath that works on documents created on the fly from strings as well as remotely fetched documents and the HTML DOM. An API that gives reliable absolute coordinates of any element relative to the upper-left corner of the document without all the current browser-specific madness. CSS selection APIs (those are in the process of being standardized and vendors are apparently busy implementing them). A reliable load event on script tags (ok, this one is really browser-specific and it's going to be fixed).