Element.make

Element make(string tagName, string childInfo = null, string childInfo2 = null, const string[] selfClosedElements = htmlSelfClosedElements) static

Convenience function to try to do the right thing for HTML. This is the main way I create elements.

History

On February 8, 2021, the selfClosedElements parameter was added. Previously, it used a private

immutable global list for HTML. It still defaults to the same list, but you can change it now via the parameter.

See Also

[addChild], [addSibling]
Element make(string tagName, in Html innerHtml, string childInfo2 = null) static

ditto

Element make(string tagName, Element child, string childInfo2 = null) static

ditto

Element make(Args...)(arsd.core.InterpolationHeader head, Args args, arsd.core.InterpolationFooter foot) static

Makes an element from an interpolated sequence.

FIXME: add a type interpolator thing that can be replaced FIXME: syntax check at compile time? FIXME: allow a DocumentFragment in some cases