Document

The HTML5 Document

Constructors

this
this(string html)

C-tor

this
this(typeof(this) rhs)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

byClass
auto byClass(string name)

A lazy range of elements filtered by class

byComment
auto byComment(string comment)

A lazy range of elements filtered by comment text

byId
Element byId(string id)

Get an element by id

bySelector
auto bySelector(string selector)

A lazy range of elements filtered using a css selector

byTagName
auto byTagName(string name)

A lazy range of elements filtered by tag name

createComment
Element createComment(string text)

Create a comment

createElement
Element createElement(string tagName)

Create a html element

createText
Element createText(string text)

Create a text element

fragment
Element fragment(string html)

Create a document fragment from source

opAssign
auto opAssign(string html)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
auto opAssign(typeof(this) rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
auto opAssign(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
auto opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) o)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(D d)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()

Return document as html string

Properties

body
Element body [@property getter]

The <body> element

head
Element head [@property getter]

The <head> element

isValid
bool isValid [@property getter]

Is this a valid html5 document?

rawTitle
string rawTitle [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
title
string title [@property getter]

The content of <title>

title
string title [@property setter]

Set the content of <title>

Meta