Fantom

 

class

dom::Doc

sys::Obj
  dom::Doc

@js

Doc models the DOM document object.

See docLib for details.

Slots

addCookieSource

Void addCookie(Cookie c)

Add a cookie to this session.

bodySource

native Elem body()

Get the body element.

cookiesSource

Str:Str cookies()

Map of cookie values keyed by cookie name. The cookies map is readonly and case insensitive.

createElemSource

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

native Elem? elem(Str id)

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