class dom::Doc

sys::Obj
  dom::Doc

@Js

Source

Doc models the DOM document object.

See pod doc for details.

addCookie

Void addCookie(Cookie c)

Source

Add a cookie to this session.

body

Elem body()

Source

Get the body element.

cookies

Str:Str cookies()

Source

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

createElem

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

Source

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

elem

Elem? elem(Str id)

Source

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

out

WebOutStream out()

Source

Return a WebOutStream for writing content into this document. You should call close on the stream when done writing to notify browser load is complete.

title

Str title

Source

The title of this document.