Skip to content

Commit

Permalink
Lookup spec in browser-specs, first pass at cleaning data (#484)
Browse files Browse the repository at this point in the history
The code already interfaced with the W3C API and specref but, for non /TR/
specs, this required tracking the URL and sometimes the title in the data file,
which is error-prone (both may evolve as spec progresses).

browser-specs is an up-to-date and curated list of specifications implemented
(or being worked on) by Web browsers. The code now uses at its first source of
information. browser-specs does not contain all relevant specs for roadmaps, but
that's still a better start.

This update includes a first pass at data files to drop now useless "url" and
"title" fields when possible (meaning when the filename matches the shortname
of the spec in browser-specs). A second pass will be needed to update the names
of the files to the spec shortname where possible, as well as to reference
features from within the main spec file instead of maintaining multiple specs
for each of them.

The goal with these updates is to reduce the need to maintain data to a bare
minimum.
  • Loading branch information
tidoust authored Sep 5, 2020
1 parent 729d703 commit 8b7ad06
Show file tree
Hide file tree
Showing 131 changed files with 71 additions and 181 deletions.
1 change: 0 additions & 1 deletion data/accelerometer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/accelerometer/",
"impl": {
"caniuse": "accelerometer",
"chromestatus": 5698781827825664
Expand Down
1 change: 0 additions & 1 deletion data/ambientlight.json → data/ambient-light.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/ambient-light/",
"impl": {
"caniuse": "ambient-light",
"edgestatus": "Ambient Light Sensor API",
Expand Down
7 changes: 0 additions & 7 deletions data/annotation-model.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
{
"url": "https://www.w3.org/TR/annotation-model/",
"wgs": [
{
"label": "Web Annotation Working Group",
"url": "https://www.w3.org/annotation/"
}
],
"impl" : {}
}
1 change: 0 additions & 1 deletion data/appmanifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/appmanifest/",
"impl": {
"caniuse": "web-app-manifest",
"chromestatus": 6488656873259008,
Expand Down
1 change: 0 additions & 1 deletion data/atag20.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
{
"url": "https://www.w3.org/TR/ATAG20/"
}
1 change: 0 additions & 1 deletion data/audio-output.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"edgestatus": "Audio Output Devices API",
"webkitstatus": null
},
"url": "https://www.w3.org/TR/audio-output/",
"features": {
"sinkId": {
"title": "ID of the audio device",
Expand Down
1 change: 0 additions & 1 deletion data/audiobooks.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
{
"url": "https://www.w3.org/TR/audiobooks/"
}
2 changes: 0 additions & 2 deletions data/background-fetch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url": "https://wicg.github.io/background-fetch/",
"title": "Background Fetch",
"impl": {
"chromestatus": 5712608971718656
}
Expand Down
1 change: 0 additions & 1 deletion data/background-sync.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://wicg.github.io/background-sync/spec/",
"impl": {
"caniuse": "background-sync",
"chromestatus": 6170807885627392,
Expand Down
2 changes: 0 additions & 2 deletions data/badging.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url": "https://w3c.github.io/badging/",
"title": "Badging API",
"wgs": [
{
"label": "Web Applications Working Group",
Expand Down
1 change: 0 additions & 1 deletion data/beacon.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/beacon/",
"impl": {
"caniuse": "beacon",
"chromestatus": 5517433905348608,
Expand Down
1 change: 0 additions & 1 deletion data/clipboard-apis.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/clipboard-apis/",
"impl": {
"chromestatus": 5861289330999296
}
Expand Down
2 changes: 0 additions & 2 deletions data/construct-stylesheets.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url": "https://wicg.github.io/construct-stylesheets/",
"title": "Constructable Stylesheet Objects",
"impl": {
"chromestatus": 5394843094220800
}
Expand Down
1 change: 0 additions & 1 deletion data/cookie-store.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://wicg.github.io/cookie-store/",
"impl": {
"chromestatus": 5658847691669504
}
Expand Down
1 change: 0 additions & 1 deletion data/csp3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/CSP3/",
"impl": {
"webkitstatus": "specification-content-security-policy-level-3"
},
Expand Down
1 change: 0 additions & 1 deletion data/css-animations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-animations-1/",
"impl": {
"caniuse": "css-animation",
"chromestatus": 6121990213599232
Expand Down
1 change: 0 additions & 1 deletion data/css-break-3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-break-3/",
"features": {
"box-decoration-break": {
"title": "box-decoration-break property",
Expand Down
1 change: 0 additions & 1 deletion data/css-content-3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-content-3/",
"impl": {
"mdn": "css.properties.content"
}
Expand Down
1 change: 0 additions & 1 deletion data/css-device-adapt.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-device-adapt-1/",
"impl": {
"caniuse": "css-deviceadaptation",
"chromestatus": 4737164243894272,
Expand Down
1 change: 0 additions & 1 deletion data/css-flexbox.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-flexbox-1/",
"impl": {
"caniuse": "flexbox",
"chromestatus": 4837301406400512,
Expand Down
1 change: 0 additions & 1 deletion data/css-font-loading.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-font-loading-3/",
"impl": {
"caniuse": "font-loading",
"chromestatus": 6244676289953792,
Expand Down
1 change: 0 additions & 1 deletion data/css-fonts-4.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-fonts-4/",
"features": {
"variable": {
"title": "Variable fonts",
Expand Down
1 change: 0 additions & 1 deletion data/css-gcpm-3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-gcpm-3/",
"impl": {
"chromestatus": 5400251359821824,
"edgestatus": "Generated Content for Paged Media"
Expand Down
1 change: 0 additions & 1 deletion data/css-grid-1.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-grid-1/",
"impl": {
"caniuse": "css-grid",
"chromestatus": 4589636412243968,
Expand Down
1 change: 0 additions & 1 deletion data/css-line-grid-1.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
{
"url": "https://www.w3.org/TR/css-line-grid-1/"
}
1 change: 0 additions & 1 deletion data/css-overscroll.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-overscroll-1/",
"impl": {
"caniuse": "css-overscroll-behavior",
"chromestatus": 5734614437986304,
Expand Down
1 change: 0 additions & 1 deletion data/css-page-3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-page-3/",
"impl": {
"caniuse": "css-paged-media"
}
Expand Down
1 change: 0 additions & 1 deletion data/css-page-floats-3.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
{
"url": "https://www.w3.org/TR/css-page-floats-3/"
}
1 change: 0 additions & 1 deletion data/css-paint-api.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-paint-api-1/",
"impl": {
"caniuse": "css-paint-api",
"chromestatus": 5685444318593024,
Expand Down
1 change: 0 additions & 1 deletion data/css-rhythm-1.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-rhythm-1/",
"impl": {
"webkitstatus": "specification-css-rhythmic-sizing"
},
Expand Down
5 changes: 2 additions & 3 deletions data/css-ruby.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"url": "https://www.w3.org/TR/css-ruby-1/",
"features": {
"ruby-align": {
"url": "https://www.w3.org/TR/css-ruby-1/#ruby-align-property",
"url": "#ruby-align-property",
"title": "The ruby-align property",
"impl": {
"mdn": "css.properties.ruby-align"
}
},

"ruby-position": {
"url": "https://www.w3.org/TR/css-ruby-1/#rubypos",
"url": "#rubypos",
"title": "The ruby-position property",
"impl": {
"mdn": "css.properties.ruby-position"
Expand Down
1 change: 0 additions & 1 deletion data/css-scoping.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-scoping-1/",
"features": {
"host": {
"url": "#selectordef-host",
Expand Down
1 change: 0 additions & 1 deletion data/css-scroll-snap.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-scroll-snap-1/",
"impl": {
"caniuse": "css-snappoints",
"chromestatus": 5721832506261504,
Expand Down
1 change: 0 additions & 1 deletion data/css-shadow-parts.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-shadow-parts-1/",
"impl": {
"chromestatus": 5763933658939392,
"webkitstatus": "specification-css-shadow-parts",
Expand Down
2 changes: 0 additions & 2 deletions data/css-size-adjust.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url": "https://drafts.csswg.org/css-size-adjust/",
"title": "CSS Mobile Text Size Adjustment Module Level 1",
"wgs": [
{
"url": "https://www.w3.org/Style/CSS/members",
Expand Down
1 change: 0 additions & 1 deletion data/css-transitions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-transitions-1/",
"impl": {
"caniuse": "css-transitions"
}
Expand Down
1 change: 0 additions & 1 deletion data/css-will-change.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/css-will-change-1/",
"impl": {
"caniuse": "will-change",
"chromestatus": 5954199330226176,
Expand Down
1 change: 0 additions & 1 deletion data/css2.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
{
"url": "https://www.w3.org/TR/CSS2/"
}
1 change: 0 additions & 1 deletion data/cssom-view.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/cssom-view-1/",
"features": {
"scroll-behavior": {
"title": "scroll-behavior property",
Expand Down
2 changes: 0 additions & 2 deletions data/device-memory.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url": "https://w3c.github.io/device-memory/",
"title": "Device Memory 1",
"features": {
"header": {
"title": "Header field",
Expand Down
2 changes: 0 additions & 2 deletions data/dom.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url": "https://dom.spec.whatwg.org/",
"title": "DOM",
"features": {
"shadow": {
"url": "#shadow-trees",
Expand Down
2 changes: 0 additions & 2 deletions data/element-timing.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url": "https://wicg.github.io/element-timing/",
"title": "Element Timing API",
"features": {
"img": {
"title": "Support for images",
Expand Down
2 changes: 0 additions & 2 deletions data/event-timing.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url": "https://wicg.github.io/event-timing/",
"title": "Event Timing API",
"impl": {
"chromestatus": 5167290693713920
}
Expand Down
2 changes: 0 additions & 2 deletions data/fetch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url": "https://fetch.spec.whatwg.org/",
"title": "Fetch",
"impl": {
"caniuse": "fetch",
"chromestatus": 6730533392351232,
Expand Down
2 changes: 0 additions & 2 deletions data/fileapi.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url" : "https://www.w3.org/TR/FileAPI/",
"title" : "File API",
"impl": {
"caniuse": "fileapi"
}
Expand Down
1 change: 0 additions & 1 deletion data/frame-timing.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://wicg.github.io/frame-timing/",
"impl": {
"chromestatus": 5558926443544576,
"edgestatus": "Frame Timing",
Expand Down
2 changes: 0 additions & 2 deletions data/fullscreen.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url": "https://fullscreen.spec.whatwg.org/",
"title": "Fullscreen API",
"impl": {
"caniuse": "fullscreen",
"chromestatus": 5259513871466496,
Expand Down
2 changes: 0 additions & 2 deletions data/gamepad.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url" : "https://www.w3.org/TR/gamepad/",
"title" : "Gamepad",
"impl": {
"caniuse": "gamepad",
"chromestatus": 5118776383111168,
Expand Down
1 change: 0 additions & 1 deletion data/generic-sensor.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
{
"url": "https://www.w3.org/TR/generic-sensor/"
}
1 change: 0 additions & 1 deletion data/geolocation-sensor.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/geolocation-sensor/",
"polyfills": [
{
"label": "sensor-polyfills",
Expand Down
1 change: 0 additions & 1 deletion data/gyroscope.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/gyroscope/",
"impl": {
"caniuse": "gyroscope",
"chromestatus": 5698781827825664
Expand Down
1 change: 0 additions & 1 deletion data/html-media-capture.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/html-media-capture",
"impl": {
"caniuse": "html-media-capture"
}
Expand Down
2 changes: 0 additions & 2 deletions data/html.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url": "https://html.spec.whatwg.org/multipage/",
"title": "HTML",
"features": {
"template": {
"url": "https://html.spec.whatwg.org/multipage/scripting.html#the-template-element",
Expand Down
1 change: 0 additions & 1 deletion data/ime-api.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/ime-api/",
"impl": {
"caniuse": "ime",
"chromestatus": 6366722080636928
Expand Down
1 change: 0 additions & 1 deletion data/indie-ui-events.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
{
"url": "https://www.w3.org/TR/indie-ui-events/"
}
2 changes: 0 additions & 2 deletions data/is-input-pending.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url": "https://wicg.github.io/is-input-pending/",
"title": "Early detection of input events",
"impl": {
"chromestatus": 5719830432841728
}
Expand Down
2 changes: 0 additions & 2 deletions data/js-self-profiling.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
{
"url": "https://wicg.github.io/js-self-profiling/",
"title": "JS Self-Profiling API"
}
2 changes: 0 additions & 2 deletions data/layout-instability.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"url": "https://wicg.github.io/layout-instability/",
"title": "Layout Instability API",
"impl" : {
"chromestatus": 5110682739539968
}
Expand Down
1 change: 0 additions & 1 deletion data/longtasks.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/longtasks-1/",
"impl": {
"chromestatus": 5738471184400384,
"mdn": "api.PerformanceLongTaskTiming"
Expand Down
1 change: 0 additions & 1 deletion data/magnetometer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/magnetometer/",
"impl": {
"caniuse": "magnetometer",
"chromestatus": 5698781827825664
Expand Down
2 changes: 1 addition & 1 deletion data/me-media-timed-events.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"url": "https://w3c.github.io/me-media-timed-events/",
"url": "https://www.w3.org/TR/media-timed-events/",
"title": "Media Timed Events",
"wgs": [
{
Expand Down
1 change: 0 additions & 1 deletion data/media-capabilities.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"url": "https://www.w3.org/TR/media-capabilities/",
"features": {
"encoding": {
"title": "Encoding capabilities",
Expand Down
Loading

0 comments on commit 8b7ad06

Please sign in to comment.