Read from a data attribute for autofocus