Support <datalist> element (fixes #1033)