Skip to content
Szikszai Gusztáv edited this page Apr 5, 2015 · 4 revisions

The wrapper for the native document is the DOM::Document (documentation) module.

Currently the following APIs are available:

  • active_element - Returns the active element.
  • body - Returns the body element.
  • head - Returns the head element.
  • title - Gets and Sets the documents title
# Set the title of the document
DOM::Document.title = 'Test'
Clone this wiki locally