| Summary: | JavaScript modules fail to load in XHTML documents | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | 00ff0000red | ||||
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | cdumez, webkit-bug-importer, youennf, ysuzuki | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari 13 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
Currently WebKit does not support modules in XHTML files. You can use modules in HTML (non-XHTML) pages :) |
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.