source: TI12-security/trunk/NDGSecurity/python/Tests/openid-provider/op/op/public/js/yui/menu/README @ 7080

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/Tests/openid-provider/op/op/public/js/yui/menu/README@7080
Revision 7080, 34.2 KB checked in by pjkersha, 9 years ago (diff)
  • Property svn:keywords set to Id
Line 
1*** version 2.4.0 ***
2
3
4Fixed the following bugs:
5-------------------------
6
7+ The "context" property of YAHOO.widget.Menu works better in IE 6.
8
9+ Immediate submenus of a YAHOO.widget.MenuBar instance will now re-align
10  themselves to their parent YAHOO.widget.MenuBarItem instance to remain inside
11  the boundaries of the browser viewport when the "constraintoviewport"
12  property is set to "true."
13
14+ A submenu will now appear in the correct position when its parent menu
15  is scrolled.
16
17+ YAHOO.widget.MenuItem instances will no longer increase in height when their
18  submenu is made visible.
19
20+ Removed superfluous white space between YAHOO.widget.MenuItem instances in
21  IE 6 (Strict Mode and Quirks Mode) and IE 7 (Quirks Mode).
22 
23+ Statically positioned YAHOO.widget.MenuBar instances will no longer be
24  rendered in the wrong position when the Container CSS file is included in
25  the page.
26
27+ Usage of the "maxheight" configuration property will no longer change the
28  position of a YAHOO.widget.Menu instance's shadow element
29  (<DIV class="yui-menu-shadow">).  The shadow element will alway be the last
30  child node of a menu's root element.
31
32+ YAHOO.widget.MenuBar instances with their "position" configuration property
33  set to "dynamic" are no longer rendered with scrollbars in Firefox for
34  Mac OS X.
35               
36
37
38Added the following features:
39-----------------------------
40
41+ Added a new "minscrollheight" configuration property to YAHOO.widget.Menu
42  that defines the minimum threshold for the "maxheight" configuration property.
43
44+ Added a new "scrollincrement" configuration property to YAHOO.widget.Menu
45  which can be used to increase or decrease the scroll speed of scolled menu.
46
47+ Hidden YAHOO.widget.Menu instances are now positioned off screen to
48  prevent them from introducing scrollbars on the browser viewport.  The
49  default off-screen position is -10000 for both the x and y coordinates and is
50  defined in a new constant: "YAHOO.widget.Menu.prototype.OFF_SCREEN_POSITION".
51  The method responsible for moving a menu off the screen is
52  "YAHOO.widget.Menu.prototype.positionOffScreen" which is called in response
53  to the firing of the "hide" event.
54   
55
56Changes:
57--------
58
59+ Setting "iframe" configuration property on a YAHOO.widget.MenuBar instance
60  will now result in the property cascading down to all submenus.
61
62+ The "position" configuration property no longer automatically enables the
63  iframe shim for YAHOO.widget.Menu instances.  Previously, setting the
64  "position" configuration property to "static" would automatically
65  set the "iframe" configuration property to "false," and setting "position" to
66  "dynamic" would set the "iframe" configuration property to "true" for IE 6.
67
68+ YAHOO.widget.Menu instances no longer have their widths set automatically
69  as they are rendered.
70
71+ Modified the DOM structure for a YAHOO.widget.MenuItem instance so that the
72  submenu indicator node (<EM class="submenuindicator" />) and checked
73  indicator node (<EM class="checkedindicator" />) that were previously direct
74  descendants of the <A/> node are no longer present.  The updated DOM
75  structure of a YAHOO.widget.MenuItem instance is now:
76
77    <LI class="yuimenuitem">
78   
79        <A class="yuimenuitemlabel">
80   
81            Text Label
82   
83            <EM class="helptext"> Help Text </EM>   (Optional)
84   
85        </A>
86   
87        <DIV class="yuimenu"> ... </DIV> (Optional submenu node)
88   
89    </LI>
90
91
92  With the removal of the submenu indicator and checked indicator nodes,
93  the following YAHOO.widget.MenuItem constants, used to define the inner
94  text of these nodes, have been removed:
95
96    - YAHOO.widget.MenuItem.prototype.COLLAPSED_SUBMENU_INDICATOR_TEXT
97    - YAHOO.widget.MenuItem.prototype.EXPANDED_SUBMENU_INDICATOR_TEXT
98    - YAHOO.widget.MenuItem.prototype.DISABLED_SUBMENU_INDICATOR_TEXT
99    - YAHOO.widget.MenuItem.prototype.CHECKED_TEXT
100    - YAHOO.widget.MenuItem.prototype.DISABLED_CHECKED_TEXT
101   
102  The "submenuIndicator" property of YAHOO.widget.MenuItem has also
103  been removed.
104
105
106+ Modified the CSS class names used to represent the state of
107  YAHOO.widget.MenuItem and YAHOO.widget.MenuBarItem instances.  Previous to
108  2.4.0 the following CSS class names were applied only to the <A> element
109  representing the text label for YAHOO.widget.MenuItem and
110  YAHOO.widget.MenuBarItem instances:
111
112    + hashelptext
113    + checked
114    + hassubmenu
115    + selected
116    + disabled
117
118
119  To provide more flexibility and facilitate easier styling of state, a set of
120  new CSS class names have been created that are applied to both the root
121  <LI> node and its child <A> node for YAHOO.widget.MenuItem and
122  YAHOO.widget.MenuBarItem instances:
123 
124
125    New YAHOO.widget.MenuItem CSS classes:
126    --------------------------------------
127   
128    The following are applied to the <LI> element:
129   
130    .yuimenuitem-hassubmenu
131    .yuimenuitem-checked
132    .yuimenuitem-selected
133    .yuimenuitem-disabled
134   
135    .yuimenuitem-checked-selected
136    .yuimenuitem-checked-disabled
137   
138    .yuimenuitem-hassubmenu-selected
139    .yuimenuitem-hassubmenu-disabled
140   
141
142    The following are applied to the <A> element:
143
144    .yuimenuitemlabel-hassubmenu
145    .yuimenuitemlabel-checked
146    .yuimenuitemlabel-selected
147    .yuimenuitemlabel-disabled
148   
149    .yuimenuitemlabel-checked-selected
150    .yuimenuitemlabel-checked-disabled
151   
152    .yuimenuitemlabel-hassubmenu-selected
153    .yuimenuitemlabel-hassubmenu-disabled
154
155
156    New YAHOO.widget.MenuBarItem CSS classes:
157    -----------------------------------------
158   
159    The following are applied to the <LI> element:
160   
161    .yuimenubaritem-hassubmenu
162    .yuimenubaritem-selected
163    .yuimenubaritem-disabled
164   
165    .yuimenubaritem-hassubmenu-selected
166    .yuimenubaritem-hassubmenu-disabled
167   
168
169    The following are applied to the <A> element:
170   
171    .yuimenubaritemlabel-hassubmenu
172    .yuimenubaritemlabel-selected
173    .yuimenubaritemlabel-disabled
174   
175    .yuimenubaritemlabel-hassubmenu-selected
176    .yuimenubaritemlabel-hassubmenu-disabled
177
178
179+ Deprecated the YAHOO.widget.ContextMenuItem class and replaced it
180  with YAHOO.widget.MenuItem.
181
182+ All submenus of a YAHOO.widget.ContextMenu instance are now of type
183  YAHOO.widget.Menu.
184
185+ Updated the behavior of the "clicktohide" configuration property of
186  YAHOO.widget.Menu so that it behaves as documented: controls whether or not
187  clicking outside a menu results in the menu hiding.
188
189
190
191*** version 2.3.1 ***
192
193Fixed the following bugs:
194-------------------------
195
196+ Including the Container CSS along with Menu CSS on a page will no longer
197  result in statically positioned Menu instances rendering as hidden.
198
199+ The focus outline for MenuItem instances no longer sticks in Opera.
200
201+ Clicking MenuItem instances without a value for the "url" configuration
202  property will no longer result in the MenuItem losing focus.
203 
204+ Improved compatibility with Menu CSS and YUI Base CSS.
205
206
207*** version 2.3 ***
208
209Fixed the following bugs:
210-------------------------
211
212+ Pressing the Esc key when an item in a MenuBar has focus will now result
213  in the item blurring in IE.
214
215+ Clicking a YAHOO.widget.MenuItem instance with a "url" configuration property
216  set will now result in the hiding of its parent YAHOO.widget.Menu instance.
217
218+ Creating an empty YAHOO.widget.Menu instance from existing markup will no
219  longer result in a JavaScript error.
220 
221+ The "constraintoviewport" configuration property now correctly keeps a
222  YAHOO.widget.Menu instance inside the boundaries of the browser viewport.
223
224+ Tuned scrolling behavior so that when the user has scrolled to the bottom of
225  a YAHOO.widget.Menu instance and starts pressing the up arrow key, the
226  contents begin scrolling only when the next item to be selected is out of
227  view of the scrollable area.
228
229+ Modified "removeMenu" method of YAHOO.widget.MenuManager so that it removes
230  the specified YAHOO.widget.Menu instance from the collection of visible menus.
231 
232+ Calling the "destroy" method of a visible YAHOO.widget.Menu instance now
233  purges it from the YAHOO.widget.Manager's collection of visible Menus.
234 
235+ YAHOO.widget.Menu instances now blur before hiding.
236
237+ The debug version of YAHOO.widget.Menu now correctly logs as "Menu" rather
238  than "Overlay" in IE.
239 
240+ Setting a YAHOO.widget.MenuItem instance's "checked" configuration property
241  to "true" two or more times followed by "false" will no longer result in some
242  of the DOM elements used to render the checkmark icon will no longer remain
243  in the item's DOM.
244
245+ It is now possible to click anywhere on a YAHOO.widget.MenuItem instance
246  and have it navigate to the URL specified by its "url" configuration property
247  - even if the MenuItem has a value specified for its "target"
248  configuation property.
249
250+ The "toString" method of YAHOO.widget.MenuItem now returns the instance's id.
251
252+ Setting the YAHOO.widget.MenuItem.prototype.COLLAPSED_SUBMENU_INDICATOR_TEXT
253  constant to empty string no longer results in JavaScript error.
254
255+ YAHOO.widget.MenuBar instances behave the same regardless of the value
256  of their "position" configuration property.
257
258+ It is now possible to ctr or shift-click on YAHOO.widget.MenuItem instances
259  without the browser automatically redirecting to the URL specified by the
260  MenuItem's "url" configuration property.
261
262
263Added the following features:
264-----------------------------
265
266+ Prototype of all classes (Menu, ContextMenu, MenuBar, MenuItem,
267  ContextMenuItem, MenuBarItem) are augmented with YAHOO.util.EventProvider.
268
269+ Added the following methods to YAHOO.widget.MenuManager:
270
271    - "getMenuItem"
272    - "getMenuItemGroup"
273
274+ Added the following methods to YAHOO.widget.Menu:
275
276    - "subscribe"
277    - "getSubmenus"
278    - "onRender"
279
280+ Added a "disabled" configuration property to YAHOO.widget.Menu.
281
282+ Added the constant "CSS_LABEL_CLASS_NAME" to YAHOO.widget.MenuItem that
283  represents the name of the CSS class applied to the <A/> node that is the
284  first child of its root <LI/> node.
285
286+ Added the constant "CSS_LABEL_CLASS_NAME" to YAHOO.widget.MenuBarItem that
287  represents the name of the CSS class applied to the <A/> node that is the
288  first child of its root <LI/> node.
289
290+ Added ability for YAHOO.widget.Menu instances to have shadow:
291
292    - The shadow for a Menu is implemented by appending a new element as the
293      last child of its root <DIV/> element:
294
295        <DIV class="yuimenu">
296            <DIV class="bd">
297                <UL>
298                    <LI class="yuimenuitem"/>
299                    <LI class="yuimenuitem"/>
300                    <LI class="yuimenuitem"/>
301                </UL>
302            </DIV>
303            <DIV class="yui-menu-shadow"/>
304        </DIV>
305
306    - The code that creates the shadow element resides inside the Menu's
307      public "onRender" prototype method.  To disable the creation of a Menu's
308      shadow override the prototype of the "onRender" method:
309     
310      YAHOO.widget.Menu.prototype.onRender = function () { };
311     
312    - The actual creation of the shadow element is deferred until the Menu is
313      made visible for the first time.
314     
315    - The shadow element is only created for Menu instances whose
316      "position" configuration property is set to "dynamic."
317
318    - A Menu's shadow element can be styled via two CSS classes:
319
320        + "yui-menu-shadow"  - Applied to the shadow element when it is created.
321        + "yui-menu-shadow-visible" - Applied to the shadow element when the
322        Menu is visible; it is removed when hidden.
323
324    - The shadow element is only styled when using the new "Sam" skin, for
325      the previous default skin its "display" property is set to "none."
326
327
328Changes:
329--------
330
331+ Deprecated "browser" property of YAHOO.widget.MenuItem in favor
332  of the YAHOO.env.ua.
333
334+ Modified the DOM structure for a YAHOO.widget.MenuItem instance so that its
335  root <LI/> node only has only two direct descendants:
336 
337    - The <A/> node for its text label
338    - The <DIV/> node for its submenu
339 
340  The submenu indicator node (<EM class="submenuindicator" />), checked
341  indicator node (<EM class="checkedindicator" />), and help text node
342  (<EM class="helptext" />) that were previously direct descendants of a
343  YAHOO.widget.MenuItem instance's root <LI/> are now direct descendants of
344  its <A/> node:
345
346    <LI class="yuimenuitem || yuimenubaritem">
347
348        <A class="yuimenuitemlabel || yuimenubaritemlabel">
349
350            Text Label
351
352            <EM class="helptext"> Help Text </EM>   (Optional)
353            <EM class="checkedindicator"> ... </EM> (Optional)
354            <EM class="submenuindicator"> ... </EM> (Optional)
355
356        </A>
357
358        <DIV class="yuimenu"> ... </DIV> (Optional submenu node)
359
360    </LI>
361
362+ As a result of the DOM structure changes for YAHOO.widget.MenuItem, the
363  following CSS class are now only applied to a YAHOO.widget.MenuItem
364  instance's <A/> node:
365
366    - "selected"
367    - "disabled"
368    - "checked"
369    - "hashelptext"
370    - "hassubmenu"
371
372+ The "text" configuration property of YAHOO.widget.MenuItem now accepts a
373  string of HTML (previously only accepted plain text).
374
375+ The "emphasis" and "strongemphasis" configuration properties of
376  YAHOO.widget.MenuItem are no longer interpreted when building from
377  existing markup.
378
379+ All YAHOO.widget.MenuItem instances built from markup must have an <A> node
380  as the first child of its root <LI> node.
381
382+ When building YAHOO.widget.MenuItem instances from existing markup, the value
383  of the "text" property is set to the innerHTML of the menu item's <A> node.
384
385+ Deprecated the following YAHOO.widget.MenuItem configuration properties:
386
387    - "strongemphasis"
388    - "emphasis"
389    - "helptext"
390
391
392Known Issues
393------------
394
395+ ContextMenu works differently in Opera
396  --------------------------------------
397  Opera doesn't support the "contextmenu" DOM event used to trigger the display
398  of YAHOO.widget.ContextMenu instances.  As a result, clicking the right mouse
399  button in Opera will not result in the display of a ContextMenu instance
400  as it would in IE, Gecko, and Safari.  To work around this shortcoming, users
401  will need to do the following to trigger the display of
402  YAHOO.widget.ContextMenu instances in Opera:
403
404    - Opera for Windows: Hold down the control key while clicking with the
405      left mouse button.
406
407    - Opera for Mac OS X: Hold down the command/Apple key while clicking with 
408      the left mouse button.
409
410+ Focus highlight sticks in Opera
411  -------------------------------
412  In Opera focus is designated via the application of a background color
413  to an element's text node.  When a Menu instance has focus in Opera, the
414  focus highlight can remain on a MenuItem instance even after it has blurred.
415
416+ ContextMenu instances cannot be invoked by clicking on Java Applets
417  -------------------------------------------------------------------
418  When a Java Applet is specified as the "trigger" element for a ContextMenu
419  instance it will not display when the Applet is clicked.  This is not a
420  bug in the ContextMenu class, but rather a result of DOM events not bubbling
421  up from inside Java Applets.  For more information on this issue see:
422  http://tech.groups.yahoo.com/group/ydn-javascript/message/12128
423
424+ Flash Movies appear on top of Menu instances
425  --------------------------------------------
426  Flash movies can appear on top of Menu instances in IE and Gecko-based
427  browsers.  To fix this problem, set the "wmode" of the Flash movie to either
428  "transparent" or "opaque" as indicated below:
429
430  Via the <object> tag:
431
432    <object>
433        <param name="wmode" value="opaque">
434    </object>
435
436    <object>
437        <param name="wmode" value="transparent">
438    </object>
439
440  Via the <embed> tag:
441   
442    <embed wmode="transparent"> ... </embed>
443    <embed wmode="opaque"> ... </embed>
444
445    ** For more information see
446       http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15523
447
448+ Menu instances not rendered at correct z-index in IE
449  -------------------------------------------------------
450  In IE, when a Menu instance is rendered inside a relatively positioned
451  element the z-index of the Menu instance is now relative to its
452  relatively positioned parent element.  This is not a bug in the
453  Menu class, but rather a bug in IE where relatively positioned elements
454  establish a new stacking context for their child nodes.  To avoid this
455  bug is recommend that all Menu instances that need to be able to float
456  above any other element in the document be made direct descendants of the
457  <body> element.
458 
459  ** For more information see
460   http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html
461
462+ Elements with scrollbars poke through Menu instances floating above them
463  ------------------------------------------------------------------------
464  There is a bug in Gecko-based browsers for Mac OS X where an element's
465  scrollbars will poke through absolutely positioned elements floating above
466  them.  To fix this problem the "overflow" property of a Menu instance's
467  shadow element is toggled between "hidden" and "auto" (through the application
468  and removal of the "hide-scrollbars" and "show-scrollbars" CSS classes) as its
469  "visibility" configuration property is toggled between "false" and "true."
470  Therefore, the shadow element acts like a shim, blocking scrollbars from
471  poking through the Menu.
472
473  PLEASE NOTE: 
474
475  1) The "hide-scrollbars" and "show-scrollbars" CSS classes classes are
476     applied only for Gecko on Mac OS X and are added/removed to/from the
477     Menu's root HTML element (DIV) via the "hideMacGeckoScrollbars" and
478     "showMacGeckoScrollbars" methods of YAHOO.widget.Overlay. 
479 
480  2) This fix is only applied when using the "Sam" skin; the CSS for the
481     original Menu skin does not contain any rules for rendering the
482     shadow element. 
483 
484  3) Once the fix is applied the bug will reappear if the window loses focus. 
485     This can be fixed via Javascript by hiding and showing the Menu instance
486     when the window receives focus:
487
488        YAHOO.util.Event.on(window, "focus", function () {
489       
490            oMyMenu.hide();
491            oMyMenu.show();
492       
493        });
494
495    ** For more information see
496       https://bugzilla.mozilla.org/show_bug.cgi?id=187435
497
498
499*** version 2.2.2 ***
500
501Fixed the following bugs:
502-------------------------
503
504+ "toString" method of MenuItem, MenuBarItem and ContextMenuItem classes will
505  no longer throw a JavaScript error when using the debug version
506  of the Event utility.
507
508+ "toString" method of Menu, MenuBar and ContextMenu classes will
509  no longer attempt to output the instance's id if it is not available.
510
511+ Logger statements output by debug version of MenuManager are now properly
512  categorized as "MenuManager"
513
514
515
516*** version 2.2.1 ***
517
518Added the following features:
519-----------------------------
520
521+ Added the following methods to YAHOO.widget.Menu:
522  - "focus"
523  - "blur"
524  - "hasFocus"
525
526+ Added the following Custom Events to YAHOO.widget.Menu:
527    + "focusEvent"
528    + "blurEvent"
529
530+ Added the following methods to YAHOO.widget.MenuManager:
531  - "getFocusedMenuItem"
532  - "getFocusedMenu"
533
534+ Added "hasFocus" method to YAHOO.widget.MenuItem
535
536
537Fixed the following bugs:
538-------------------------
539
540+ Menu instances no longer set focus to themselves by default when made
541  visible.  Menus only receive focus in response to the following events:
542    - The user mouses down on a MenuItem instance
543    - The user tabs into a MenuItem instance
544
545+ Application of the "maxheight" configuration property is now correctly
546  deferred until the "render" event fires when Menu instance is being
547  lazy loaded.
548
549+ The "maxheight" configuration property can now be set multiple times without
550  a Menu instance restoring itself to its original default height.
551
552+ The "maxheight" configuration property can now be set on hidden Menu
553  instances that use lazy loading.
554
555+ Menu instances with a "width" configuration property set will now render
556  at the specified width rather than shrink wrapping to their contents.
557
558+ Menu item help text no longer wraps to the next line in Opera 9.
559
560+ Immediate submenus of a Menubar instance will no longer shift their position
561  to try and remain inside the confines of the browser's viewport.
562
563+ Lazy loaded ContextMenu instances now appear in the correct position when
564  they are made visible for the first time.
565
566+ MenuBar instances no longer throw JavaScript errors when navigating items with
567  submenus containing no active items using the keyboard.
568
569+ Replaced use of native "hasOwnProperty" method
570  with YAHOO.lang.hasOwnProperty.
571
572+ Rendered Menu instances will now update their width when items are added
573  or removed.
574
575+ Mousing over a Menu instance in an IE window that does not have focus will
576  no longer cause the window to receive focus.
577
578
579Changes:
580--------
581
582+ "activeItem" property of YAHOO.widget.Menu now returns a reference to the
583  Menu's currently selected item.
584
585+ Added a "visible" CSS class that is applied to visible Menu instances.
586
587+ Refactored the Menu family to improve performance, especially when working
588  with a large number of instances in IE6.
589
590
591
592*** version 2.2.0 ***
593
594Added the following features:
595-----------------------------
596
597* Added two new methods to YAHOO.widget.Menu:
598
599    * "getItems" - Returns a flat array of the items in a menu.
600
601    * "clearContent" - Removes all of the content from the menu, including the
602      menu items, group titles, header and footer.
603
604
605* Added three new configuration attributes to YAHOO.widget.Menu:
606
607    * "submenuhidedelay" - Number indicating the time (in milliseconds) that
608      should expire before a submenu is hidden when the user mouses out of a
609      menu item heading in the direction of a submenu. The value must be
610      greater than or equal to the value specified for the "showdelay"
611      configuration property.
612
613    * "maxheight" - Defines the maximum height (in pixels) for a menu before
614      the contents of the body are scrolled.
615
616    * "classname" - CSS class to be applied to the menu's root <div> element.
617      The specified class(es) are appended in addition to the default class as
618      specified by the menu's CSS_CLASS_NAME constant.
619
620
621* Added new constants to YAHOO.widget.MenuItem:
622
623    * COLLAPSED_SUBMENU_INDICATOR_TEXT - String representing the text for the
624      <em> element used for the submenu arrow indicator.
625
626    * EXPANDED_SUBMENU_INDICATOR_TEXT - String representing the text for the
627      submenu arrow indicator element (<em>) when the submenu is visible.
628
629    * DISABLED_SUBMENU_INDICATOR_ALT_TEXT - String representing the text for
630      the submenu arrow indicator element (<em>) when the menu item is disabled.
631
632    * CHECKED_TEXT - String representing the text to be used for the checked
633      indicator element (<em>).
634
635    * DISABLED_CHECKED_TEXT - String representing the text to be used for the
636      checked indicator element (<em>) when the menu item is disabled.
637
638
639* Added two new configuration attributes to YAHOO.widget.MenuItem:
640
641    * "onclick" - Object literal representing the code to be executed when the
642      button is clicked. Format:
643
644        {
645            fn: Function, // The handler to call when the event fires.
646            obj: Object, // An object to pass back to the handler.
647            scope: Object // The object to use for the scope of the handler.
648        }
649   
650    * "classname" - CSS class to be applied to the menu item's root <li>
651      element. The specified class(es) are appended in addition to the default
652      class as specified by the menu item's CSS_CLASS_NAME constant.
653
654
655* Added an "id" property to YAHOO.widget.MenuItem that represents the id of
656  the menu item's root <li> node.  Although not a configuration attribute, this
657  property should be set via the object literal of configuration attributes
658  passed as the second argument to the constructor.  If no value is
659  specified, then one will be generated using the "generateId" method of the
660  Dom utility (YAHOO.widget.Dom).
661
662* Added a "trigger context menu event"
663  (YAHOO.widget.ContextMenu.triggerContextMenuEvent) that fires when the DOM
664  "contextmenu" event ("mousedown" for Opera) is fired by one of the elemeents
665  defined as a YAHOO.widget.ContextMenu instance's trigger.
666
667* Added a "cancel" method to YAHOO.widget.ContextMenu that can be used to
668  cancel the display of a YAHOO.widget.ContextMen instance.  This method
669  should be called within the scope of a "context menu" event handler for
670  one of the context menu's triggers
671  (YAHOO.widget.ContextMenu.triggerContextMenuEvent).
672
673
674Fixed the following bugs:
675-------------------------
676
677* Users can now move diagonally from a menu item to its corresponding submenu
678  without the submenu hiding immediately.
679
680* "destroy" method of YAHOO.widget.Menu now unsubscribes from the "text resize" 
681  event (YAHOO.widget.Module.textResizeEvent).
682
683* Browser progress bar no longer flashes when hovering over checked menu items
684  or menu items with submenus.
685
686* Menu item submenu indicator image no longer jumps to the next line in
687  quirks mode.
688
689* Mouse events no longer fire in Firefox if a YAHOO.widget.Menu instance is
690  moved by script into a stationary mouse pointer.
691
692* Modified "toString" method of YAHOO.widget.ContextMenuItem to return the
693  correct class name, as it was reporting as YAHOO.widget.MenuBarItem.
694
695
696Changes:
697--------
698
699* Default value for the "showdelay" configuration attribute is now 250
700
701* Modified code so that all Menu images are added via CSS background images. 
702  As a result, the following constants and properties have been deprecated:
703
704    * YAHOO.widget.MenuItem.SUBMENU_INDICATOR_IMAGE_PATH
705    * YAHOO.widget.MenuItem.SELECTED_SUBMENU_INDICATOR_IMAGE_PATH
706    * YAHOO.widget.MenuItem.DISABLED_SUBMENU_INDICATOR_IMAGE_PATH
707    * YAHOO.widget.MenuItem.COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT
708    * YAHOO.widget.MenuItem.EXPANDED_SUBMENU_INDICATOR_ALT_TEXT
709    * YAHOO.widget.MenuItem.DISABLED_SUBMENU_INDICATOR_ALT_TEXT
710    * YAHOO.widget.MenuItem.CHECKED_IMAGE_PATH
711    * YAHOO.widget.MenuItem.SELECTED_CHECKED_IMAGE_PATH
712    * YAHOO.widget.MenuItem.DISABLED_CHECKED_IMAGE_PATH
713    * YAHOO.widget.MenuItem.CHECKED_IMAGE_ALT_TEXT
714    * YAHOO.widget.MenuItem.DISABLED_CHECKED_IMAGE_ALT_TEXT
715    * YAHOO.widget.MenuItem.IMG_ROOT
716    * YAHOO.widget.MenuItem.IMG_ROOT_SSL
717    * YAHOO.widget.MenuItem.imageRoot
718    * YAHOO.widget.MenuItem.isSecure
719
720
721
722*** version 0.12.2 ***
723
724* No changes
725
726
727
728*** version 0.12.1 ***
729
730Fixed the following bugs:
731-------------------------
732
733* Placed the call to the DOM "focus" method used by the MenuItem class inside
734  a zero-second timeout to resolve a race condition between menu positioning
735  and focusing of a menu item that resulted in the browser viewport
736  scrolling unnecessarily.
737
738* Switched to JSMin for JavaScript compression to resolve issues with the
739  minified version. 
740
741* Disabled menu item instances will no longer display a submenu if the item is
742  clicked or moused over.
743
744* Can no longer select more than one item in a menu if using the keyboard and
745  mouse simultaneously.
746
747* Calling the "destory" method on a menu will now unregister all of the menu's
748  submenus from the MenuManager. 
749
750
751
752*** version 0.12 ***
753
754Added the following features:
755-----------------------------
756
757* Added the YAHOO.widget.MenuManager singleton class.
758
759* Added two new methods to YAHOO.widget.Menu:
760
761    * "addItems" - Adds an array of items to a menu.
762
763    * "getRoot" - Returns the root menu in a menu hierarchy.
764
765* Added two new events to YAHOO.widget.Menu:
766
767    * "itemAddedEvent" - Fires when an item is added to a menu.
768
769    * "itemRemovedEvent" - Fires when an item is removed from a menu.
770
771* Added two new properties to YAHOO.widget.Menu:
772
773    * "itemData" - Array of items to be added to the menu.
774
775    * "lazyLoad" - Boolean indicating if the menu's "lazy load" feature
776      is enabled.
777
778* Added new configuration properties to YAHOO.widget.Menu:
779
780    * "hidedelay" - Hides the menu after the specified number of milliseconds. 
781
782    * "showdelay" - Shows the menu after the specified number of milliseconds. 
783
784    * "container" - The containing element the menu should be rendered into. 
785
786    * "clicktohide" - Boolean indicating if the menu will automatically be
787      hidden if the user clicks outside of it.
788
789    * "autosubmenudisplay" - Boolean indicating if submenus are automatically
790      made visible when the user mouses over the menu's items.
791
792* Added a "toString" method to YAHOO.widget.MenuItem, YAHOO.widget.MenuBarItem
793  and YAHOO.widget.ContextMenuItem that returns the class name followed by the
794  value of the item's "text" configuration property.
795
796
797Fixed the following bugs:
798-------------------------
799
800* Setting a YAHOO.widget.ContextMenu instance's "trigger" configuration
801  property will remove all previous triggers before setting up the new ones.
802
803* "destroy" method of YAHOO.widget.ContextMenu cleans up all DOM event handlers.
804
805* Clicking on a menu item with a submenu no longer hides/collapses the
806  entire menu.
807
808* Clicking an item's submenu indicator image no longer collapses the
809  entire menu.
810 
811 
812Changes:
813--------
814
815* Deprecated the YAHOO.widget.MenuModule and YAHOO.widget.MenuModuleItem
816  classes.  The Base classes are now YAHOO.widget.Menu and
817  YAHOO.widget.MenuItem.
818
819* "addItem" and "insertItem" methods of YAHOO.widget.Menu now accept an
820  object literal representing YAHOO.widget.MenuItem configuration properties.
821
822* "clearActiveItem" now takes an argument: flag indicating if the Menu
823  instance's active item should be blurred.
824
825* Switched the default value of the "visible" configuration property for
826  YAHOO.widget.Menu to "false."
827
828* Switched the default value of the "constraintoviewport" configuration
829  property for YAHOO.widget.Menu to "true."
830
831* Overloaded the "submenu" configuration property for YAHOO.widget.MenuItem
832  so that it now can accept any of the following:
833
834    * YAHOO.widget.Menu instance
835    * Object literal representation of a menu
836    * Element id
837    * Element reference
838
839* "hide" and "show" methods of statically positioned menus now toggle the their
840  element's "display" style property between "block" and "none."
841
842
843
844*** version 0.10.0 ***
845
846* Initial release
847
848* Known issues:
849
850      * Some Firefox extensions disable the ability for JavaScript to prevent 
851        the display of the browser's default context menu.  These extensions
852        can cause the YUI ContextMenu to stop working.  If you encounter this
853        problem, you can reset the context menu preference in Firefox back to
854        the default by making sure the "Disable or replace context menus"
855        preference is checked:
856
857            Mac Firefox 1.0:
858            -------------------
859            Preferences > Web Features >
860                Advanced... > Disable or replace context menus
861
862            Mac Firefox 1.5
863            -------------------
864            Preferences > Context >
865                Advanced... > Disable or replace context menus
866
867            Windows Firefox 1.0
868            -------------------
869            Tools > Options > Web Features >
870                Advanced... > Disable or replace context menus
871
872            Windows Firefox 1.5
873            -------------------
874            Tools > Options > Context >
875                Advanced... > Disable or replace context menus
876
877
878
879*** version 0.11.3 ***
880
881Added the following features:
882-----------------------------
883
884* Added a "target" configuration property to the MenuModuleItem object that
885  allows the user to specify the target of an item's anchor element.  Items
886  that make use of the "target" configuration property will require the user
887  to click exactly on the item's anchor element to navigate to the specified
888  URL.
889
890* Items without a "url" property set will automatically hide their parent
891  menu instance(s) when clicked.
892
893
894Fixed the following bugs:
895-------------------------
896
897* Items in a submenu should now navigate to their specified URL when clicked.
898
899* Removed MenuBar's use of "overflow:hidden."  This fixes an issue in Firefox
900  1.5 in which submenus of a Menubar instance cannot overlay other absolutely
901  positioned elements on the page.
902
903* Submenus of a Menubar instance will now automatically have their iframe shim
904  enabled in IE<7.
905
906* Statically positioned Menubar and Menu instances will now render with the
907  correct position and dimensions in Safari.
908
909* MenuModuleItem's "focus" method now checks to make sure that an item's
910  "display" style property is not "none" before trying to set focus to its
911  anchor element.
912 
913* A ContextMenu instance will now hide all other ContextMenu instances before
914  displaying itself.
915
916* Removed the dead space in front of an item's submenu indicator image in IE. 
917  This space was causing an item's submenu to flicker when the user hovered
918  over it.
919
920
921Changes:
922--------
923
924* Moved the DOM event handlers for every menu from the root DIV node of each
925  instance to the document object.  This change reduces the number of DOM event
926  handlers used by Menu to eight, improving the cleanup time required by the
927  Event utility.
928
929               
930
931*** version 0.11.0 ***
932
933Added the following features:
934-----------------------------
935* Overloaded the "addItem" and "insertItem" methods of MenuModule to accept a
936  string or a MenuModuleItem instance
937
938* Added the ability to define a MenuItem instance as being "checked"
939
940
941Fixed the following bugs:
942-------------------------
943* Changing the path for the submenu indicator image of one MenuModuleItem
944  subclass will no longer affect other subclasses
945
946* MenuItem instances built from existing markup without anchor tags will no
947  longer trigger a JavaScript error when clicked
948
949* Modified the implementation of the "imageRoot" property for the
950  MenuModuleItem class so that it is set to a secure/non-secure path when the
951  object is instantiated
952
953* Menu instances now resize in response to changes to the browser's font size
954
955* Modified the propagation of the MenuModule class's "submenualignment"
956  configuration property so that it only applies to instances of the same type
957
958* Adjusted the specificity of the style rule that controls the position of a
959  MenuItem instance's submenu indicator image to prevent it from wrapping in IE
960
961* Specified a width and height for submenu indicator images in the Menu
962  stylesheet to ensure that Menu instances are always rendered at the correct
963  width
964
965* Clicking a MenuItem instance will no longer trigger two HTTP GET requests
966
967* Users can now control or shift-click on MenuItem links
968
969
970Changes:
971--------
972* In the Menu stylesheet (menu.css), switched from using "first" class to
973  "first-of-type" class
974
975* Changed case of MenuModuleItem class's "subMenuIndicator" property
976  to "submenuIndicator"
Note: See TracBrowser for help on using the repository browser.