There has never been any point in using <a> as a parent tag for an id
attribute used as a fragment identifier.
Although there were browsers back in the Dark Ages that demanded <a
name="..." > rather than <h2 id="..." >, I'm unaware of any that
supported fragments by id, yet required the <a> tag too.