An id for every div.
It would be nice if every div that the ajax toolkit created had an id. Most 'top level' elements do have IDs, but some 'component divs' don't. Because of this, these elements are a little difficult to get at when testing.
For instance, if i were writing tests for my zimbra app and wanted to send a mouse event to the first node of a DwtTree, i would have to do something like the following:
This is 'somewhat' non-intuitive. What is more intuitive is something like this:
Additionally, it might be useful to allow developers to assign their own ids.
new DwtTree(parent, 'UserListTree');
which might change our event dispatching code to something like this:
document.getElementById('UserListTree' + '-expand').dispathEvent(evt);
What do you think?