Returns the native Element for the given value.
This function is not aware of layers or transitions
and does not support non-standard selectors like :main
. For this use up.fragment.get()
.
undefined
, null
, document
, window
…), returns the argument unchanged.Passing a CSS selector will return the first matching element:
up.element.get('.foo') // returns the first matching element
The parent element whose descendants to search if value
is a CSS selector string.
If omitted, all elements in the document
will be searched.
The obtained Element
.