Skip to content

Add type: "text" import attribute#43505

Open
eemeli wants to merge 3 commits intomdn:mainfrom
eemeli:import-text
Open

Add type: "text" import attribute#43505
eemeli wants to merge 3 commits intomdn:mainfrom
eemeli:import-text

Conversation

@eemeli
Copy link
Copy Markdown
Contributor

@eemeli eemeli commented Mar 20, 2026

Description

Adds documentation for the upcoming type: 'text' import attribute.

Motivation

I'm the proposal champion, and would like to advance it.

Additional details

The proposal is specified in:

@eemeli eemeli requested review from a team as code owners March 20, 2026 09:50
@eemeli eemeli requested review from wbamberg and removed request for a team March 20, 2026 09:50
@github-actions github-actions bot added Content:HTML Hypertext Markup Language docs Content:WebAPI Web API docs Content:JS JavaScript docs size/s [PR only] 6-50 LoC changed labels Mar 20, 2026
@eemeli eemeli mentioned this pull request Mar 20, 2026
6 tasks
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 20, 2026

Preview URLs (3 pages)

External URLs (3)

URL: /en-US/docs/Web/JavaScript/Reference/Statements/import/with
Title: Import attributes

(comment last updated: 2026-03-23 11:01:03)

eemeli and others added 2 commits March 23, 2026 12:58
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Copy link
Copy Markdown
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Josh-Cena Josh-Cena requested review from hamishwillee and removed request for a team March 25, 2026 18:26
Copy link
Copy Markdown
Collaborator

@hamishwillee hamishwillee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eemeli Is this supported by any browser? I was expecting to see a text key in the browser compatibility section of each of the places you added the addition - such as https://pr43505.review.mdn.allizom.net/en-US/docs/Web/JavaScript/Reference/Statements/import/with#browser_compatibility

This is important because MDN only documents things that are available in browsers (though not necessarily released).

I'm (very) happy with the docs updatd. I've added request changes though, because we shouldn't merge this until the corresponding browser compatibility data has merged. Can you link that in the description?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:HTML Hypertext Markup Language docs Content:JS JavaScript docs Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants