Created attachment 432441 [details] Example file that reveals the bug When attempting to load a JavaScript module file (i.e. <script type="module" src="..." />), in an XHTML document sent with the "application/xhtml+xml" MIME type, the file is not loaded at all. It appears that the XHTML document does not recognize "module" as a supported type? "nomodule" scripts also fail to load, so web applications are unable to provide a reliable fallback due to this bug.
Chromium bug: https://bugs.chromium.org/p/chromium/issues/detail?id=717643
Currently WebKit does not support modules in XHTML files. You can use modules in HTML (non-XHTML) pages :)
<rdar://problem/80187406>