function buildFragment(elements)
        {
            var fragment = document.createDocumentFragment();
            elements.remove(null);
            fragment.appendChildren.apply(fragment, elements);
            return fragment;
        }
@param {!Array<?Element>} elements
@return {!DocumentFragment}