-
-
Get a unique CSS selector for a given DOM node
Parameters:
| Name |
Type |
Description |
element |
HTMLElement
|
DOM node |
Returns:
string
- Unique CSS selector for the given DOM node
-
previousElementSibling(element) → {string}
-
Gets the element node that is a sibling to this element node (a direct child of the same parent) and is immediately
previous to it in the DOM tree. It's a fix for IE that does not support :nth-child pseudoselector
Parameters:
| Name |
Type |
Description |
element |
HTMLElement
|
DOM node |
Returns:
string
- Unique CSS selector for the given DOM node
-
-
Gets the element node that is a sibling to this element node (a direct child of the same parent) and is immediately
previous to it in the DOM tree. It's a fix for IE that does not support :nth-child pseudoselector
Parameters:
| Name |
Type |
Description |
element |
HTMLElement
|
DOM node |
Returns:
string
- Unique CSS selector for the given DOM node