You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: files/en-us/mozilla/firefox/experimental_features/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -432,7 +432,7 @@ This algorithm is similar to strict equality `===` (where `-0` and `+0` are cons
432
432
### Text module import
433
433
434
434
The `with` clause [`{ type: "text" }`](/en-US/docs/Web/JavaScript/Reference/Statements/import/with#text_modules_type_text) allows importing a module's source as a string value.
435
-
The import ignores the media type of the response: the content is parsed as text even if the source contains scripts or other executable code.
435
+
The media type of the response is ignored, and the content is parsed as text even if the source contains scripts or other executable code.
The `with` clause [`{ type: "text" }`](/en-US/docs/Web/JavaScript/Reference/Statements/import/with#text_modules_type_text)is now supported for importing a text module into a string value.
124
-
This can be used to ensure that a module served with the media type of `text/plain`is imported as text, even if it contains JavaScript or some other format.
123
+
The `with` clause [`{ type: "text" }`](/en-US/docs/Web/JavaScript/Reference/Statements/import/with#text_modules_type_text)allows importing a module's source as a string value.
124
+
The media type of the response is ignored, and the content is parsed as text even if the source contains scripts or other executable code.
0 commit comments