Get the DOMClass
from obj
, or Err(())
if obj
is not a DOM object.
Returns whether value
is an array-like object (Array, FileList,
HTMLCollection, HTMLFormControlsCollection, HTMLOptionsCollection,
NodeList).
Returns whether obj
is a DOM object implemented as a proxy.
Convert id
to a DOMString
. Returns None
if id
is not a string or
integer.
Convert the given JSString
to a DOMString
. Fails if the string does not
contain valid UTF-16.
Get a *const T
for a DOM object accessible from a HandleValue
.
Caller is responsible for throwing a JS exception if needed in case of error.
Get a *const T
for a DOM object accessible from a JSObject
.
Get a *const T
for a DOM object accessible from a JSObject
, where the DOM object
is guaranteed not to be a wrapper.
Get the private pointer of a DOM object from a given reflector.
Get a *const libc::c_void
for the given DOM object, unwrapping any
wrapper around it first, and checking if the object is of the correct type.
Get a *const libc::c_void
for the given DOM object, unless it is a DOM
wrapper, and checking if the object is of the correct type.
Get a DomRoot<T>
for a DOM object accessible from a HandleValue
.
Caller is responsible for throwing a JS exception if needed in case of error.
Get a DomRoot<T>
for the given DOM object, unwrapping any wrapper
around it first, and checking if the object is of the correct type.
Get a DomRoot<T>
for a WindowProxy accessible from a HandleValue
.
Caller is responsible for throwing a JS exception if needed in case of error.