new Document()
- Source:
Methods
$(selector) → {Array|Element|null}
Returns an element matching the selector if the last part of the selector starts with #
Otherwise returns all elements matching the selector in the subtree as array.
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
string | Selector to search for |
- Source:
Returns:
querySelectorAsync(selector) → {Element|Promise.<Element>}
Returns either the element matching the selector or if it doesn't a promise to be fullfiled when an element matching the selector appears
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
string | Selector to search for |
- Source: