Updated parser.c --foster-parent in head elements