Non-standard type argument for document.open() is no longer supported

Published: | Categories: DOM

Description

Firefox supports 2 non-standard optional arguments for the document.open method: type and replace. Starting with Firefox 61, type will be ignored and text/html will always be used as the MIME type for a newly opened document. Since these arguments are not supported by any other browsers, the compatibility risk should be very low.

References