Thursday, February 21st, 2008
DOMAssistant 2.6 has been released and the team focused on performance for this version.
They have their own version of slickspeed which includes their library.
The CSS changes include:
Where querySelectorAll and getElementsByClassName arenâ€™t available, DOMAssistant resorts to XPath to select elements, which is an approach that also has very impressive performance results, not to mention native web browser support. The only web browser not supporting XPath is Internet Explorer, where the only option is â€œregularâ€ looping through elements.
The new version includes a new plugin architecture and an update of the magic methods:
Accepts either a CSS selector or an object reference. E.g.
$(document). Fails silently if you try to call a method when the selector didnâ€™t return any matches; i.e.,
$("input[type=text]").addClass("text-fields")wonâ€™t throw an error trying to call the
addClassmethod, even if the
$selector didnâ€™t match any elements.
Returns: A collection of one or several nodes for CSS selectors/object reference when an object was sent in.
Accepts a string parameter, expected to be the
idof an element. E.g.
$$("navigation"). Will throw an error if you try to call a method, if there wasnâ€™t any match.
Returns: A direct reference to the DOM element.
Posted by Dion Almaer at 7:55 am