checking contents of snippet vs element