new TableCellElement(dom_element, table_info)
Create a table cell element object which contains information obout a td or th element in a table
Parameters:
Name | Type | Description |
---|---|---|
dom_element |
DOMElement | Reference to the dom element object associated with td or th element |
table_info |
TableInfo | Information about the current table relationships in the DOM |
- Source:
- scripts/cache_tables.js, line 2130
Properties:
Name | Type | Description |
---|---|---|
dom_element |
DOMElement | Reference to the dom element object associated with td or th element |
cache_id |
String | String that uniquely identifies the cache element object in the cache |
child_cache_elements |
Array | Array of table cache elements for the tree representation of the table |
parent_table_element |
TableElement | Reference to the table element object that contatins the td or th element |
parent_row_element |
TableRowElement | Reference to the table element object that contatins the td or th element |
type |
Number | Constant indicating the type of table cache element object |
text_content |
String | Text content of the element including descendent element content |
scope |
String | Value of the scope attribute |
headers |
String | Value of the headers attribute |
headers_array |
Array | Array of id values in the headers attribute |
header_content |
String | Text content of calculated headers |
header_source |
Number | How header content was calculated |
number_of_header_ids |
Number | Number of ids in the headers attribute |
has_spans |
Boolean | Value of the rowspan attribute |
row_span |
Number | Value of the rowspan attribute (Note: converted to Number) |
column_span |
Number | Value of the colspan attribute (Note: converted to Number) |
Methods
-
<static> addChild(table_element)
-
Adds a cache table element to the tree representation of the table in the cache
Parameters:
Name Type Description table_element
TableElement | CaptionElement | THeadElement | TBodyElement | TableRowElement | TableCellElement Cache table element object to add to root of tree of table elements - Source:
- scripts/cache_tables.js, line 2240
-
<static> getAttributes() → {Array}
-
Returns an array of attributes for the element, sorted in alphabetical order
- Source:
- scripts/cache_tables.js, line 2289
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_tables.js, line 2315
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_tables.js, line 2341
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_tables.js, line 2363
Returns:
Returns a array of event information- Type
- Array
-
<static> getNodeResults() → {Array}
-
Returns an array of node results in severity order
- Source:
- scripts/cache_tables.js, line 2258
Returns:
Returns a array of node results- Type
- Array
-
<static> getStyle() → {Array}
-
Returns an array of style items
- Source:
- scripts/cache_tables.js, line 2272
Returns:
Returns a array of style items- Type
- Array
-
<static> toString() → {String}
-
Creates a text string representation of the table cell element object
- Source:
- scripts/cache_tables.js, line 2379
Returns:
Returns a text string representation of the table cell element object- Type
- String