Skip to content

Commit 47fa4b8

Browse files
committed
Apply suggestions from code review
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
1 parent e46c0bf commit 47fa4b8

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
@@ -432,7 +432,7 @@ This algorithm is similar to strict equality `===` (where `-0` and `+0` are cons
432432
### Text module import
433433

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

438438
| 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
@@ -120,6 +120,6 @@ You can find more such features on the [Experimental features](/en-US/docs/Mozil
120120

121121
- **Text module import**: `javascript.options.experimental.import_text`
122122

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

0 commit comments

Comments
 (0)