Set ordered list attribute on list element.