Skip to content

Commit

Permalink
Split api.Headers.lexicographical_sorting in two and update the data (
Browse files Browse the repository at this point in the history
mdn#22809)

I was investingating this feature in the course of creating a fetch feature in web-features. The data for Safari looked dubious. I soon found out that the two parts of this (sorting and combining) have different histories. Instead of using partial implementations, I split the feature in two.

The highlights here:

- Safari always supported both
- Edge acquired them separately
- Firefox got both at the same time, but later than reported
  • Loading branch information
ddbeck authored Apr 9, 2024
1 parent 385f57f commit 549c996
Showing 1 changed file with 51 additions and 11 deletions.
62 changes: 51 additions & 11 deletions api/Headers.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,12 @@
}
}
},
"keys": {
"iterate_combined_duplicates": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Headers/keys",
"description": "Iteration combines duplicate header names",
"support": {
"chrome": {
"version_added": "42"
"version_added": "57"
},
"chrome_android": "mirror",
"deno": {
Expand All @@ -390,15 +390,12 @@
"version_added": "16"
},
"firefox": {
"version_added": "44"
"version_added": "57"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"nodejs": {
"version_added": "18.0.0"
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
Expand All @@ -416,9 +413,9 @@
}
}
},
"lexicographical_sorting": {
"iterate_lexicographically": {
"__compat": {
"description": "Lexicographical sorting, and values from duplicate header names combined when iterated.",
"description": "Iteration is lexicographically sorted",
"support": {
"chrome": {
"version_added": "57"
Expand All @@ -427,9 +424,11 @@
"deno": {
"version_added": "1.0"
},
"edge": "mirror",
"edge": {
"version_added": "18"
},
"firefox": {
"version_added": "44"
"version_added": "57"
},
"firefox_android": "mirror",
"ie": {
Expand All @@ -439,8 +438,49 @@
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "10.1"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"keys": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Headers/keys",
"support": {
"chrome": {
"version_added": "42"
},
"chrome_android": "mirror",
"deno": {
"version_added": "1.0"
},
"edge": {
"version_added": "16"
},
"firefox": {
"version_added": "44"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"nodejs": {
"version_added": "18.0.0"
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "10.1"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
Expand Down

0 comments on commit 549c996

Please sign in to comment.