check if dom structure is correct (a tag within an h2 tag)