Add attribtes to datalist options

for https://github.com/joomla/joomla-cms/commit/51138ffadfa55cea2652cff465aa012e025d6e22#commitcomment-6621908