Constructor
new IE9Compatibility()
Not actually a constructor as there are no instance methods; underlying definition is an empty object. Documented as a class for the purposes of this documentation generator only.
- Source:
Extends
Methods
(static) addClass(el, className)
Adds compatibility for the DOMTokenList.add function for Element.classList.
Parameters:
| Name | Type | Description |
|---|---|---|
el |
Element | Element to which the given class is to be added. |
className |
string | Class name to add to the given |
- Source:
(static) hasClass(el, className) → {boolean}
Adds compatibility for the DOMTokenList.contains function for Element.classList.
Parameters:
| Name | Type | Description |
|---|---|---|
el |
Element | Element whose class list is to be examined. |
className |
string | Class name for which to look in the given |
- Source:
Returns:
true if the given className is present in el's classlist, otherwise false.
- Type
- boolean
(static) removeClass(el, className)
Adds compatibility for the DOMTokenList.remove function for Element.classList.
Parameters:
| Name | Type | Description |
|---|---|---|
el |
Element | Element from which the given class is to be removed. |
className |
string | Class name to remove from the given |
- Source: