Element.opDispatch

Old access to attributes. Use attrs instead.

More...
  1. string opDispatch [@property setter]
  2. string opDispatch [@property setter]
    class Element
    @property
    string
    opDispatch
    (
    string name
    )
    (
    string v = null
    )
    if (
    !isConvenientAttribute(name)
    )

Detailed Description

DEPRECATED: generally open opDispatch caused a lot of unforeseen trouble with compile time duck typing and UFCS extensions. so I want to remove it. A small whitelist of attributes is still allowed, but others are not.

Instead, use element.attrs.attribute, element.attrs["attribute"], or element.getAttribute("attribute")/element.setAttribute("attribute").

Meta