Constructor: KeyboardFocus

OpenAjax.a11y.cache.KeyboardFocus

new KeyboardFocus(dom_cache)

Creates cache object representing information related to links in a web page

Parameters:
Name Type Description
dom_cache DOMCache Reference to the DOMCache object
Properties:
Name Type Description
dom_cache DOMCache Reference to the DOMCache object
up_to_date Boolean Boolean true if the cache has been creating using the current DOMElements, else false NOTE: This is a common property of all caches and is used when selectively build caches based on whether a rule needs the cache
area_elements Array List of area element objects in the document
link_elements Array List of link element objects in the document
length Number Number of link element objects in the list
this.sort_property String Link element object property the list of link objects is sorted by
this.sort_ascending Boolean true if list is sorted in ascending order, otherwise false
links_sorted_by_href Array List of link element object sorted by href values;
links_sorted_by_name Array List of link element object sorted by there accessible name (i.e link text);
sorted_by_href_ready Boolean True if list of link element objects sorted by href values is ready for use in rules
sorted_by_name_ready Boolean True if list of link element objects sorted by name values is ready for use in rules
Source:
  • scripts/cache_keyboard_focus.js, line 7