The Document.implementation property returns a DOMImplementation object associated with the current document.
Document.implementation
MDN Reference