Element.outerHTML

  1. string outerHTML [@property getter]
  2. string outerHTML [@property setter]
    struct Element
    @property
    void
    outerHTML
    (
    string html
    )

Examples

Document d = "<html><a><p>";

auto p = d.byTagName("p").front;
p.outerHTML = "<div><a>";

assert(p.name == "p");
assert(d.body.descendants.front.name == "a");

Meta