Element.make

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

  1. Element make(string tagName, string childInfo, string childInfo2, string[] selfClosedElements)
    class Element
    static
    make
    (
    string tagName
    ,
    string childInfo = null
    ,
    string childInfo2 = null
    ,
    const string[] selfClosedElements = htmlSelfClosedElements
    )
  2. Element make(string tagName, Html innerHtml, string childInfo2)
  3. Element make(string tagName, Element child, string childInfo2)

See Also

Meta

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.