Skip to content

Commit 7cc40c4

Browse files
committed
Apply suggestions from code review
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
1 parent 79bcd1f commit 7cc40c4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

files/en-us/mozilla/firefox/experimental_features/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ This includes all the instance methods on `Intl.Locale` that are prefixed with "
448448
### Text module import
449449

450450
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.
452452
([Firefox bug 2024854](https://bugzil.la/2024854)).
453453

454454
| Release channel | Version added | Enabled by default? |

files/en-us/mozilla/firefox/releases/152/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,6 @@ You can find more such features on the [Experimental features](/en-US/docs/Mozil
130130

131131
- **Text module import**: `javascript.options.experimental.import_text`
132132

133-
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.
135135
([Firefox bug 2024854](https://bugzil.la/2024854)).

0 commit comments

Comments
 (0)