DOMAssistant 2.7.2 released

September 21st, 2008 by chenghong

With 2.7.2, we continue to fix the inevitable bugs that have slipped through. The changes in this release are:

  • Fixed regression bug on $ with multiple arguments
  • Fixed passed parameters not checked before their usage in attrToXpath()
  • Fixed buggy :checked behavior in non-IE browsers
  • Two new methods preview: triggerEvent() and replace() 

 New methods preview

In this release we are inviting you to check out two new methods that you may find useful.

triggerEvent(evt, target)

Calls the event handler for event evt of the current element. You can optionally specify the target element to which the event is dispatched. Note that the actual event does not happen – it merely triggers the event handler itself.



$(“”).triggerEvent(“customevent”, myelement);


replace(content, returnNew) 

This method differs from replaceContent() in that it does not replace the content – it replaces the current element with the new content. Content can be string, numbers or element. By default this method returns the replaced element, but you can have the new element returned by setting returnNew to true.


$$(“para”).replace(“<div>Testing <i>new</i> method</div>”, true);



 Downloading the new version

 Go to the download page and try it out! 

Both comments and pings are currently closed.

3 Responses to “DOMAssistant 2.7.2 released”

  1. Pelle says:

    Lovely news chenghong! Good work!

  2. Robert Nyman says:

    Great news! Love the new methods!

  3. [...] 2.7.2 of DOMAssistant has just been released, and beside from some small improvements and minor tweaks, it has two new and very interesting [...]