Tag.this

Constructs an instance of Tag with a specified name and type

The constructor does not initialize the attributes. To initialize the attributes, you access the attr member variable.

class Tag
@safe pure
this

Parameters

name string

the Tag's name

type TagType

(optional) the Tag's type. If omitted, defaults to TagType.START.

Examples

auto tag = new Tag("img",Tag.EMPTY);
tag.attr["src"] = "http://example.com/example.jpg";

Meta