Prototype 1.5.1_rc3 is out!
Here’s what’s new:
Bug fixes
Element.addMethodsnow again adds the methods to Element. [#7888]Form.requestalso works with forms containing an input element withname="action". [#8063]- Safari no longer crashes on
String#stripScriptsandextractScriptswith large<script>. Form.disableworks again on non-form elements. [#6887]String#endsWithnow always returns the correct value. [#7822]- Ajax responses with no Content-type header are no longer evaluated. [#7827]
Hash#toQueryStringagain serializes undefined values to ensure consitency withString#toQueryParams. [#7806]- Various fixes of the
$$()utility. [#7873], [#7901]
Enhancements
- Ajax.Requests now supports per-request
onCreatecallbacks. [#8011] - JSON strings are automatically stripped of their security delimiters (if present) before
eval. More details on this security issue here (PDF document). [#7910] - all
toJSONmethods now generate YAML-loadable JSON. [#7883] Event.elementnow returns an extended element. [#7870]- Linefeed normalisation is now prevented in IE on
String#escapeHTMLandString#unescapeHTMLfor consistency with other browsers. - Added a new
Element.childElementsmethod (shorter alias ofElement.immediateDescendants). - Added a new
Element.firstDescendantmethod (same as usingElement.downwith no arguments).
Performance
- Faster
$$()utility andElement.getElemementsBySelectormethod. [#7873], [#7901] - Optimized
Element.next,Element.down,Element.upandElement.previousDOM methods. [#7848] - Speed improvements of
String#escapeHTMLandString#unescapeHTMLin IE and Safari.
You can also view the full changelog.
If all goes well, this will be the last release candidate before 1.5.1 final, so we’re counting on your zealous testing and bug reporting.
