initialise the element->type value so TAG types dont accidently get VIEWPORT if it...