Parse options from an attribute of an element.