Namespace $.dom
Holds the DOM-related methods.
Defined in: core-dom.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Holds the DOM-related methods.
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
$.dom.getStyle(elem, prop)
Get the computed style for a property of an element.
|
Namespace Detail
$.dom
Holds the DOM-related methods.
This plugin extends the global DOM objects, like Node, Element and NodeList.
The $.dom.NodeList methods are also used for extending the HTMLCollection object prototype, since the two interfaces serve similar purpose. However, due to bug 300519, in Gecko any changes to the HTMLCollection.prototype do not yield the expected results. As such, a work-around needs to be implemented. (TODO)
The new methods implement common functionality needed when working with the DOM.
Method Detail
<static>
{String}
$.dom.getStyle(elem, prop)
Get the computed style for a property of an element.
- Parameters:
- {Element} elem
- The element you want to get the computed style from.
- {String} prop
- The style property name you want.
- Returns:
- {String} The computed style for the given property.