Family of convenience functions to quickly add a tag with some text or
other relevant info (for example, it's a src for an <img> element
instead of inner text). They forward to Element.make then calls appendChild.
div.addChild("span", "hello there");
div.addChild("div", Html("<p>children of the div</p>"));
out (ret)
{
assert (ret !is null);
assert (ret.parentNode is this);
assert (firstChild.parentNode is ret);
assert (ret.parentDocument is this.parentDocument);
}
Family of convenience functions to quickly add a tag with some text or other relevant info (for example, it's a src for an <img> element instead of inner text). They forward to Element.make then calls appendChild.