The OpenD Programming Language

Element.opDispatch

Provides easy access to common HTML attributes, object style.

auto element = Element.make("a");
a.href = "cool.html"; // this is the same as a.setAttribute("href", "cool.html");
string where = a.href; // same as a.getAttribute("href");
  1. string opDispatch [@property setter]
    class Element
    @property
    string
    opDispatch
    (
    string name
    )
    (
    string v = null
    )
    if (
    isConvenientAttribute(name)
    )
  2. string opDispatch [@property setter]

Meta