omit adding a link attribute if there was no href in an A tag. #502
also allow a name attribute to create an A tag by itself, without href. #502
test for #502
Merge branch 'od/issue_502' into develop