Robert Nyman has his eyes set on providing a JavaScript library that can hold it’s own against the major players. He just announced the release of DOMAssistant 2.5 with enhancements that he feels are on par with other libraries:
With this release of DOMAssistant, I feel that it can seriously compete with the major JavaScript libraries on the market. It has a very easy syntax to select or manipulate elements, and with the core functionality anyone needs, without having to worry about web browser differences, the compressed version with all modules included weighs in at a mere 6kb (Gzipped). If Gzipping isn’t an option for you, the compressed version lands at 21kb.
This release has a number of new features:
- Full CSS1-3 selector support
- New AJAX methods: load and get
- Enhanced performance and extra checks for memory leaks
- XPath Support
- DOMAssistant now creates its own scope to make use of private properties
Also, in terms of code quality Robert has taken the extra step to ensure that the whole library is JSLint validated.
The main purpose of DOMAssistant is to provide a solid foundation to build upon without all of the extras sometimes included in other libraries. As such, DOMAssistant focuses on:
- Element selection (through CSS selectors or enhanced methods).
- CSS handling (adding and removing CSS classes).
- Event handling (adding and removing events).
- Content manipulation (add or remove elements).
- AJAX interaction (getting content from other sources, and adding it to the document).
- DOM loaded (calling functions when the DOM is loaded, as opposed to the document with all dependencies).
While Robert certainly has a big task ahead of him to make up ground on libraries such as jQuery, Prototype or Ext, it seems he’s heading in the right direction and DOMAssistant may appeal to those folks looking for a convenient and lightweight method of using JavaScript without all of the extra fluff.
More information can be obtained about this release here.