function registerDocument(document) {
  document_ = document;
}
Register a Document to use when creating nodes for XML serializations. Can be used
to inject a Document where there is no globally available implementation.

@param {Document} document A Document.
@api