Skip to content

Add type: "text" import attribute#43505

Draft
eemeli wants to merge 3 commits into
mdn:mainfrom
eemeli:import-text
Draft

Add type: "text" import attribute#43505
eemeli wants to merge 3 commits into
mdn: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-05-01 03:58:26)

Comment thread files/en-us/web/javascript/reference/statements/import/with/index.md Outdated
Comment thread files/en-us/web/javascript/reference/statements/import/with/index.md Outdated
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?

eemeli and others added 3 commits May 1, 2026 13:56
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
@hamishwillee
Copy link
Copy Markdown
Collaborator

@eemeli As per my last comment, is it in any browser? If so the corresponding browser compatibility data should be updated and we can look at this/gt it in.

@eemeli
Copy link
Copy Markdown
Contributor Author

eemeli commented May 1, 2026

Ah, sorry, lost track of this earlier. I've been working on a Firefox implementation, which I'm hoping to land into Nightly next week. So no, this feature is not yet available in any browser.

@hamishwillee hamishwillee marked this pull request as draft May 3, 2026 23:33
@hamishwillee
Copy link
Copy Markdown
Collaborator

Thanks @eemeli ! I've converted to draft so it falls off my review queue. Can you please reenable once the feature is in nightly. It is OK if you forget because likely I'll end up with the MDN release tasks when we get to FF152 anyway.

@Josh-Cena
Copy link
Copy Markdown
Member

This can now move forward: #44166

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