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
@@ -448,7 +448,7 @@ This includes all the instance methods on `Intl.Locale` that are prefixed with "
448
448
### Text module import
449
449
450
450
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.
451
-
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.
451
+
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.
134
-
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.
133
+
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.
134
+
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