allow empty ref using alt text as ID
allow empty link in href