serializeHeadContents
Serialize the child nodes created by block, excluding the opening and closing <head> tag.
This is useful when accumulating elements from several sources, which can then be wrapped altogether in a single <head> tag.