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.
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.
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!