class dom::Doc
sys::Obj dom::Doc
@Js
Doc models the DOM document object.
See pod doc for details.
- addCookie
-
Add a cookie to this session.
- body
-
Elem body()Get the body element.
-
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)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
-
Get the element with this
id, ornullif no element is found with thisid. - out
-
WebOutStream out()Return a WebOutStream for writing content into this document. You should call
closeon the stream when done writing to notify browser load is complete. - title
-
Str titleThe title of this document.