Allow tag functions to set attrs on creation