Fan

 

class

dom::Doc

sys::Obj
  dom::Doc

@js

Doc models the DOM document object.

Slots

bodySource

static native Elem body()

Get the body element.

createElemSource

static native Elem createElem(Str tagName, [Str:Str]? attrib := null)

Create a new element with the given tag name. If the attrib map is specified, set the new elements attributes to the given values.

elemSource

static native Elem? elem(Str id)

Get the element with this id, or null if no element is found with this id.