Skip to content

feat(manifests)!: add top-level manifests folder + move Web App Manifest #26109

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/issue-regex-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ data:http:
data:js:
- 'js\.'
- '\/docs\/Web\/JavaScript'
data:manifests:
- 'manifests\.'
- '\/docs\/Web\/Progressive_web_apps\/Manifest'
data:mathml:
- 'mathml\.'
- '\/docs\/Web\/MathML'
Expand Down
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ data:js:
- changed-files:
- any-glob-to-any-file:
- "javascript/**"
data:manifests:
- changed-files:
- any-glob-to-any-file:
- "manifests/**"
data:mathml:
- changed-files:
- any-glob-to-any-file:
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"/html/*.json",
"/http/*.json",
"/javascript/*.json",
"/manifests/*.json",
"/mathml/*.json",
"/svg/*.json",
"/webdriver/*.json",
Expand Down
2 changes: 1 addition & 1 deletion .vscode/snippets.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"prefix": ["bcd", "browser-compat"],
"body": [
"{",
" \"${1|api,css,html,http,javascript,mathml,svg,webdriver,webextensions|}\": {",
" \"${1|api,css,html,http,javascript,manifests,mathml,svg,webassembly,webdriver,webextensions|}\": {",
" \"${2:${TM_FILENAME_BASE}}\": {",
" \"__compat\": {",
" \"mdn_url\": \"${3:mdn-url}\",",
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ Data for [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML) features, inc

- `elements` - Elements
- `global_attributes` - Global attributes
- `manifest` - Web App manifest keys

### [`http`](http)

Expand All @@ -169,6 +168,10 @@ Data for JavaScript language features, including:
- `operators` - Mathematical and logical operators
- `statements` - Language statements and expressions

### [`manifests`](./manifests)

- `webapp` - Web App manifest keys

### [`mathml`](./mathml)

Data for [MathML](https://developer.mozilla.org/en-US/docs/Web/MathML) features, including:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"background_color": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/background_color",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"description": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/description",
Expand Down
4 changes: 2 additions & 2 deletions html/manifest/display.json → manifests/webapp/display.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"display": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/display",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"display_override": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/display_override",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"file_handlers": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/file_handlers",
Expand Down
4 changes: 2 additions & 2 deletions html/manifest/icons.json → manifests/webapp/icons.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"icons": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/icons",
Expand Down
4 changes: 2 additions & 2 deletions html/manifest/id.json → manifests/webapp/id.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"id": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/id",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"launch_handler": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/launch_handler",
Expand Down
4 changes: 2 additions & 2 deletions html/manifest/name.json → manifests/webapp/name.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"name": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/name",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"note_taking": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/note_taking",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"orientation": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/orientation",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"prefer_related_applications": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/prefer_related_applications",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"protocol_handlers": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/protocol_handlers",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"related_applications": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/related_applications",
Expand Down
4 changes: 2 additions & 2 deletions html/manifest/scope.json → manifests/webapp/scope.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"scope": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/scope",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"serviceworker": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/serviceworker",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"share_target": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/share_target",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"short_name": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/short_name",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"shortcuts": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/shortcuts",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"start_url": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/start_url",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"html": {
"manifest": {
"manifests": {
"webapp": {
"theme_color": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/theme_color",
Expand Down
2 changes: 2 additions & 0 deletions schemas/compat-data-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Compatibility data is organized in top-level directories for each broad area cov

- [javascript/](../javascript) contains data for [JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) built-in Objects, statement, operators, and other ECMAScript language features.

- [manifests/](../manifests) contains data for various manifests, such as the [Web Application Manifest](https://developer.mozilla.org/docs/Web/Progressive_web_apps/manifest).

- [mathml/](../mathml) contains data for [MathML](https://developer.mozilla.org/docs/Web/MathML) elements, attributes, and global attributes.

- [svg/](../svg) contains data for [SVG](https://developer.mozilla.org/en-US/docs/Web/SVG) elements, attributes, and global attributes.
Expand Down
2 changes: 2 additions & 0 deletions scripts/generate-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const compatDataTypes = {
http: 'Contains data for [HTTP](https://developer.mozilla.org/docs/Web/HTTP) headers, statuses, and methods.',
javascript:
'Contains data for [JavaScript](https://developer.mozilla.org/docs/Web/JavaScript) built-in Objects, statement, operators, and other ECMAScript language features.',
manifests:
'Contains data for various manifests, such as the [Web Application Manifest](https://developer.mozilla.org/docs/Web/Progressive_web_apps/manifest).',
mathml:
'Contains data for [MathML](https://developer.mozilla.org/docs/Web/MathML) elements, attributes, and global attributes.',
svg: 'Contains data for [SVG](https://developer.mozilla.org/docs/Web/SVG) elements, attributes, and global attributes.',
Expand Down
1 change: 1 addition & 0 deletions scripts/lib/data-folders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const dataFoldersMinusBrowsers = [
'html',
'http',
'javascript',
'manifests',
'mathml',
'svg',
'webassembly',
Expand Down