DocTester

Validate a document

TODO: add various tests here, or in subclasses, as required

Members

Functions

attribute
void attribute(Node node)

validate an attribute

cdata
void cdata(Node node)

validate a cdata node

comment
void comment(Node node)

validate a comment node

data
void data(Node node)

validate a data node

doctype
void doctype(Node node)

validate a doctype node

element
void element(Node node)

validate an element

pi
void pi(Node node)

validate a pi node

validate
void validate(Doc doc)

Generate a text representation of the document tree

validate
void validate(Node node)

Generate a representation of the given node-subtree

Static functions

error
void error(const(char)[] format, ...)

halt validation

uniqueAttrNames
void uniqueAttrNames(Node node)

Ensure attribute names are unique within the element

Meta