Constructor: FormElement

OpenAjax.a11y.cache.FormElement

new FormElement(dom_element, control_info)

Creates a FormElement object used to hold information about form elements

Parameters:
Name Type Description
dom_element DOMelement dom_element object references DOMElement of the form element
control_info ControlInfo Information about the parent control cache
Properties:
Name Type Description
dom_element DOMElement DOMElement associated with the form element
cache_id String String that uniquely identifies the cache element in the DOMCache
document_order Number Ordinal position of the form element in the document in relationship to other form elements
child_cache_elements Array Array of child cache control elements as part of cache control tree
control_type Number Constant indicating the type of cache control object
number_of_controls Number Number of controls in form
action String The value of the action attribute of the form control
method String The value of the method attribute of the form control
name_attribute String The value of the name attribute of the form control
Source:
  • scripts/cache_controls.js, line 1320

Methods

<static> addChildControl(control_element)

Adds a cache control element to the tree representation of control elements

Parameters:
Name Type Description
control_element WidgetElement | ButtonElement | FieldsetElement | FormElement | InputElement | LabelElement | LegendElement | OptgroupElement | OptionElement | SelectElement | TextareaElement Cache control element object to add
Source:
  • scripts/cache_controls.js, line 1360

<static> getAttributes() → {Array}

Returns an array of attributes for the element, sorted in alphabetical order

Source:
  • scripts/cache_controls.js, line 1408
Returns:
Returns a array of node results
Type
Array

<static> getCacheProperties() → {Array}

Returns an array of cache properties sorted by property name

Source:
  • scripts/cache_controls.js, line 1434
Returns:
Returns a array of cache properties
Type
Array

<static> getCachePropertyValue(property) → {String|Number}

Returns the value of a property

Parameters:
Name Type Description
property String The property to retreive the value
Source:
  • scripts/cache_controls.js, line 1453
Returns:
Returns the value of the property
Type
String | Number

<static> getEvents() → {Array}

Returns an array of events for the element, sorted in alphabetical order

Source:
  • scripts/cache_controls.js, line 1475
Returns:
Returns a array of event information
Type
Array

<static> getNodeResults() → {Array}

Returns an array of node results in severity order

Source:
  • scripts/cache_controls.js, line 1377
Returns:
Returns a array of node results
Type
Array

<static> getStyle() → {Array}

Returns an array of style items

Source:
  • scripts/cache_controls.js, line 1391
Returns:
Returns a array of style items
Type
Array

<static> toString() → {String}

Returns a text string representation of the FormElement

Source:
  • scripts/cache_controls.js, line 1492
Returns:
Returns string represention the FormElement object
Type
String