Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Correct the import assertions and attributes compat table#22821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Elchi3 merged 3 commits intomdn:mainfromcaptainbrosset:import-assert-with
Apr 15, 2024

Conversation

@captainbrosset
Copy link
Contributor

@captainbrossetcaptainbrosset commentedApr 12, 2024
edited
Loading

Summary

The compat data for import assertions and attributes is out of date. This PR, hopefully, corrects it.

Some background info:

  • import ... from ... assert ... is now deprecated, but still implemented in Chromium (aka import assertions).
  • import ... from ... with ... is the new way of doing this (aka import attributes).
  • Both syntax can be used with{type: json} or{type: css}. The latter is missing from BCD altogether.
  • Safari 17.2 added support for import attributes in 17.2, but only for{type: json}.https://developer.apple.com/documentation/safari-release-notes/safari-17_2-release-notes#JavaScript
  • Chromium supports import attributes for both types.

Test results and supporting details

I tested with a local HTML file on Chrome, Edge, Firefox, and Safari. And checkedchromestatus.com, and the Safari release notes linked above.

@github-actionsgithub-actionsbot added the data:jsCompat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript labelApr 12, 2024
Copy link

@dandclarkdandclark left a comment

Choose a reason for hiding this comment

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

Thanks for updating this! Just one minor correction.

Copy link
Member

@Elchi3Elchi3 left a comment

Choose a reason for hiding this comment

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

Thank you! 👍

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

Reviewers

@Elchi3Elchi3Elchi3 approved these changes

+1 more reviewer

@dandclarkdandclarkdandclark approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

data:jsCompat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@captainbrosset@Elchi3@dandclark

[8]ページ先頭

©2009-2025 Movatter.jp