Prefer attributes directive over element

For IE compatibility reasons