The Document.implementation property returns a A DOMImplementation object.
Document.implementation
MDN Reference