html/utils
Utility functions to ease working with DOM elements.
- Source:
- AMD-modules.js, line 7
Methods
getStyleProperty(element, propertyName) → {*}
Get the value of a property on an element.
- Source:
- AMD-modules.js, line 14
Parameters:
Name | Type | Description |
---|---|---|
element | HTMLElement | The element. |
propertyName | string | The name of the property. |
Returns:
The value of the property.
- Type
- Any
isInHead(element) → {boolean}
Determine if an element is in the document head.
- Source:
- AMD-modules.js, line 23
Parameters:
Name | Type | Description |
---|---|---|
element | HTMLElement | The element. |
Returns:
Set to `true` if the element is in the document head, `false` otherwise.
- Type
- boolean