YUI Release 2.5.1 README
Digest
This document is a summary of
the 2.5.1 update information that has been added to the respective
README files included within
each component folder. Please
refer the README files for the
components you are using for
a full change history of each component.
Animation
-
No changes
AutoComplete
-
No changes
Base
-
No changes
Button
-
No changes
Calendar
-
Bug Fixes
- Fixed bug with mindate, maxdate being applied incorrectly if
set to a day on
which time change took place (DST, E.U Summertime)
and the day is not
the first day of the week.
- Fixed DateMath.getWeekNumber
implementation to return correct
week numbers. The older implementation would return Week 0 for
certain weeks (e.g. the week starting Sun Dec 28th 2008)
To suppor the fix, DateMath.getWeekNumber has a signature
change in 2.5.1 and can now support U.S Week calculations based
on Jan 1st identifying the first week of the year, as well as
ISO8601 week calculations based on Jan 4th identifying the first
week of the year
The arguments which the method expected prior to 2.5.1 were not
being used in calculating the week number. The new signature is:
DateMath.getWeekNumber(Date dt, Number firstDayOfWeek, Number janDate)
Where:
dt is the date for
which week number is required
firstDayOfWeek is the day index identifying the
first
day of the week. Default is 0 (Sunday).
janDate is the date in the first week of
January, which
identifies the first week of the year.
Default is
YAHOO.widget.DateMath.WEEK_ONE_JAN_DATE (1)
NOTE: Calendar instances themselves do not currently expose a
configuration property to change the week numbering system
used. A "janDate" value is not passed to the getWeekNumber
method, when used by Calendar, resulting in it using the default value.
Therefore, ISO8601 week numbering can be generated for Calendars
by setting the value of YAHOO.widget.DateMath.WEEK_ONE_JAN_DATE
to 4.
Charts
-
No changes
Color Picker
- No
changes
Connection
-
No changes
Container
-
Bug Fixes
- Module.setBody, setHeader and setFooter methods now accept
DocumentFragments.
This feature was implicitly available
in versions prior to
2.5.0 and is now officially supported.
-
Enhancements
- Optimized addition of Modality focus handlers on masked
elements (which are
used to enforce modality) and added
ability to disable
feature, to avoid timeout script errors
in IE if your page
contains a very large number of focusable
elements.
Additionally changes
to Event in 2.5.1 should allow
for increased
scalability, when using Modal panels containing
large numbers of
focusable elements on the page.
Added a
YAHOO.widget.Panel.FOCUSABLE property, defining
the set of elements
which should have focus handlers applied
when covered by the
Modal mask.
If you wish to
disable the addition of focus handlers to all
focusable elements
on the page when a Modal Panel is displayed,
the property can be
set to an empty array:
YAHOO.widget.Panel.FOCUSABLE
= [];
NOTE: This will mean
that elements under mask may still be
accessible using the
keyboard, however the mask will still
prevent mouse access
to elements.
Cookie Utility
-
Bug Fixes
- Fixed bug preventing cookies with numbers or non-alphanumeric
characters in the cookie name from working correctly.
Data Source
-
Enhancements
- Replaced custom function parsing with parsed/walked value
locators for
responseSchema.resultsList, .fields, etc
- Added metaFields to responseSchema to capture arbitrary response
data
Data Table
-
Enhancements
- Only split THEAD from TBODY markup for scrollable tables.
- columnResizeEvent sends new width value.
- Improved performance for adding, deleting, and updating rows
dynamically.
Dom
-
Bug Fixes
- getStyle fix for getting computedStyle across documents
Drag and Drop
-
No changes
Editor
-
Bug Fixes
- Adobe AIR Support
- 1763867 - Adobe AIR:
iFrame document open
- 1763869 - Adobe AIR:
Blank Image insertion fails
- 1763872 - Adobe AIR:
Setting font-family fails
- 1763880 - Adobe AIR:
Image Editor should show copy/paste note
-
Internet Explorer
- 1556954 - [SF 1816784
] tabbing troubles...
- 1776579 - [SF 1873881
] IE Bulleting Behavior
- Safari
- 1775802 - [SF 1899803]
Links in safari are treated as regular links...
- 1777918 - [SF 1898878
] Safari uses <span> instead of <strong> tags...
- All
- 1776107 -
ToolbarButton doesn't have a destroy method
- 1776117 - Editor
Accessibility Enhancements
- 1776539 - [SF 1874009
] Greedy Regex in RTE Eats embed and other tags
- 1777925 - [SF 1878976
] Regex matches both <i> and <iframe>
- 1764038 - [SF 1898886
] Problem with handleSubmit after move to 2.5.0
- 1693686 - [SF 1869619]
Image Modification Dialog
Element
-
No changes
Event
-
Bug Fixes
- Arrays are once again resized when a listener is removed.
- onAvailable/onContentReady stop polling when there is nothing to
look for.
Fonts
-
No changes
Get
-
Enhancements
-
onFailure callback receives a second parameter containing an error message.
- Added
'charset' configuration option for inserted nodes. Default is utf-8.
- Added 'insertBefore' configuration to
specify a node or node id to insert before.
This can be used to position CSS nodes before any overriding styles.
Grids
-
Bug Fixes
- Added more specific selectors to allow
nesting on "yui-gd" grids
within "yui-ge" for Bugzilla #1779582,
Sourceforge #1897741
- Modified Page Width and Template Preset values for IE
-
Enhancements
- Reordered several rules; formatted file and added more comments
- Modified width and margin values for "thirds" nesting grid
- Combined and optimized several selectors and rules
History Manager
-
Bug Fixes
- While BHM still does not work with current versions of Opera, we
are no
longer throwing an exception in Opera -- which, if uncaught,
causes
execution to stop. Instead, we're
messaging the unsupported
browser
issue via YAHOO.log. This will
allow other aspects of a BHM-
managed
script to continue executing in Opera.
- Fixed issue with
case-sensitive tagName comparisons
(SourceForge bug 1868730).
Image Cropper
-
Bug Fixes
- Fixed Issues dealing with mask resize
and keeping crop interface inside of crop region
- 1770394 - [SF 1900953 ] Ratio doesn't work
- 1776164 - [SF 1903193 ] Several issues with the crop window
- 1779430 - [SF 1904258 ] Initial CSS size isn't checked
Image Loader
-
No changes
JSON
-
Enhancements
- Added support for native toJSON method
- Updated special characters RegExp
- Changed stringification to account for odd responses to typeof
Layout Manager
-
Bug fixes
- 1756637 - handling of scrollbar on panel resize is inconsistent
- 1767234 - [SF 1900012] LayoutUnit loses scrolled state on resize
- 1770567 - [SF 1901621] Left Unit Disappears on Expand
- 1778721 - [SF 1904062] Layout Manager documentation error
- 1781653 - Don't assume element with id "doc" is the
body
- Removed the requirement for the collapse config option in order
to programatically
collapse a
unit.
Logger
-
Enhancements
- Support object introspection to Firebug.
- Better performance when rendering messages to LogReader.
Menu
-
Bug fixes
- The "url" configuration property of
YAHOO.widget.MenuItem now returns the exact value of the
"href"
attribute of its anchor element in Internet Explorer.
- Clicking on an item in a Menu will no longer cause Firefox to
scroll to the top of the window.
-
Enhancements
- Improved Menu's viewport boundary awareness.
Profiler
- No
changes
Profiler Viewer
- No
changes
Reset
- No
changes
Resize
-
Bug fixes
- 1766923 - [SF 1899888] Resize.destroy() not removing status
- 1784371 - Status div tracks on resize cancel
Selector
-
Bug fixes
- query() returns null when firstOnly and no result
- correctly handle quoted attributes
Slider
- No
changes
Tab View
- No
changes
Tree View
- No
changes
Uploader
-
Enhancements
- Added Adobe AIR detection
YAHOO Global
-
Bug fixes
- Fix to ensure UploadCancel event fires as expected.
YUI Loader
-
Enhancements
- Updated metadata for 2.5.1.
- Added the get utility's support for
'insertBefore'.
- Added the get utility's support for
'charset'.
- Increased rollup threshold for
reset-fonts-grids so reset-fonts will be
selected when appropriate.
- yuiloader supersedes yahoo and get.
- Modules now can have an 'after' property
that can be used to specify
a list of modules that are not dependencies, but need
to be included
above the module if they are present.
- base will always be included after reset, fonts, and grids.
Skin css
will be included after all of the above.
- Added a new rollup: yuiloader-dom-event (yuiloader includes
yahoo and get as well).
- utilities.js now includes yuiloader and get.
- loaded modules which supersede other modules but don't
allow automatic
rollup work correctly (the superseded modules won't
load).
- The filter property can be set on the
instance.
- Custom css modules are always sorted below YUI css.
- The loader will not attempt to rollup the skin css for
custom skinnable modules.
-
Bug fixes
- Fixed profilerviewer's dependency list.
- Addessed a source order issue when
logger is included after a component
which tries to instantiate it at load time.
YUI Test
-
Enhancements
- Added ability to include framework assertion message in addition
to custom assertion
message.
-
Bug fixes
- Fixed
ObjectAssert.hasProperty() so that is correctly identifies declared properties
with a
value of
undefined.
- Fixed DateAssert
documentation errors.