Modified HtmlBodyElement to make sure elements which can appear only
under a specific parent element can be added in the same way only.