browser-specs 2.28.0 → 2.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +482 -1
  2. package/index.json +17993 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -11,7 +11,43 @@ cross-references, WebIDL, quality, etc.
11
11
  ## Table of Contents
12
12
 
13
13
  - [Installation and usage](#installation-and-usage)
14
- <!-- COMMON-TOC: start --><!-- COMMON-TOC: end -->
14
+ <!-- COMMON-TOC: start -->
15
+ - [Spec object](#spec-object)
16
+ - [`url`](#url)
17
+ - [`shortname`](#shortname)
18
+ - [`title`](#title)
19
+ - [`shortTitle`](#shorttitle)
20
+ - [`categories`](#categories)
21
+ - [`series`](#series)
22
+ - [`series.shortname`](#seriesshortname)
23
+ - [`series.currentSpecification`](#seriescurrentspecification)
24
+ - [`series.title`](#seriestitle)
25
+ - [`series.shortTitle`](#seriesshorttitle)
26
+ - [`series.releaseUrl`](#seriesreleaseurl)
27
+ - [`series.nightlyUrl`](#seriesnightlyurl)
28
+ - [`seriesVersion`](#seriesversion)
29
+ - [`seriesComposition`](#seriescomposition)
30
+ - [`seriesPrevious`](#seriesprevious)
31
+ - [`seriesNext`](#seriesnext)
32
+ - [`organization`](#organization)
33
+ - [`groups`](#groups)
34
+ - [`release`](#release)
35
+ - [`release.url`](#releaseurl)
36
+ - [`release.filename`](#releasefilename)
37
+ - [`release.pages`](#releasepages)
38
+ - [`nightly`](#nightly)
39
+ - [`nightly.url`](#nightlyurl)
40
+ - [`nightly.filename`](#nightlyfilename)
41
+ - [`nightly.pages`](#nightlypages)
42
+ - [`nightly.repository`](#nightlyrepository)
43
+ - [`nightly.sourcePath`](#nightlysourcepath)
44
+ - [`tests`](#tests)
45
+ - [`tests.repository`](#testsrepository)
46
+ - [`tests.testPaths`](#teststestpaths)
47
+ - [`tests.excludePaths`](#testsexcludepaths)
48
+ - [`source`](#source)
49
+ - [How to add/update/delete a spec](#how-to-addupdatedelete-a-spec)
50
+ - [Versioning](#versioning)<!-- COMMON-TOC: end -->
15
51
  - [Spec selection criteria](#spec-selection-criteria)
16
52
 
17
53
  ## Installation and usage
@@ -36,6 +72,451 @@ and filter the resulting list to only preserve specs that have `"browser"` in
36
72
  their `categories` property.
37
73
 
38
74
  <!-- COMMON-BODY: start -->
75
+ ## Spec object
76
+
77
+ Each specification in the list comes with the following properties:
78
+
79
+ ```json
80
+ {
81
+ "url": "https://www.w3.org/TR/css-color-4/",
82
+ "seriesComposition": "full",
83
+ "shortname": "css-color-4",
84
+ "series": {
85
+ "shortname": "css-color",
86
+ "currentSpecification": "css-color-4",
87
+ "title": "CSS Color",
88
+ "shortTitle": "CSS Color",
89
+ "releaseUrl": "https://www.w3.org/TR/css-color/",
90
+ "nightlyUrl": "https://drafts.csswg.org/css-color/"
91
+ },
92
+ "seriesVersion": "4",
93
+ "seriesNext": "css-color-5",
94
+ "organization": "W3C",
95
+ "groups": [
96
+ {
97
+ "name": "Cascading Style Sheets (CSS) Working Group",
98
+ "url": "https://www.w3.org/Style/CSS/"
99
+ }
100
+ ],
101
+ "release": {
102
+ "url": "https://www.w3.org/TR/css-color-4/",
103
+ "filename": "Overview.html"
104
+ },
105
+ "nightly": {
106
+ "url": "https://drafts.csswg.org/css-color/",
107
+ "repository": "https://github.com/w3c/csswg-drafts",
108
+ "sourcePath": "css-color-4/Overview.bs",
109
+ "filename": "Overview.html"
110
+ },
111
+ "title": "CSS Color Module Level 4",
112
+ "source": "w3c",
113
+ "shortTitle": "CSS Color 4",
114
+ "categories": ["browser"],
115
+ "tests": {
116
+ "repository": "https://github.com/web-platform-tests/wpt",
117
+ "testPaths": [
118
+ "css/css-color"
119
+ ]
120
+ }
121
+ }
122
+ ```
123
+
124
+
125
+ ### `url`
126
+
127
+ The versioned (but not dated) URL for the spec. For W3C specs published as
128
+ TR documents, this is the TR URL. For WHATWG specs, this is the URL of the
129
+ living standard. In other cases, this is the URL of the latest Editor's Draft.
130
+
131
+ The `url` property is always set.
132
+
133
+
134
+ ### `shortname`
135
+
136
+ A shortname that uniquely identifies the spec in the list. The value matches the
137
+ "well-known" shortname of the spec, that usually appears in the versioned URL.
138
+ For instance, for W3C specs published as TR documents, this is the TR shortname.
139
+ For WHATWG specs, this is the shortname that appears at the beginning of the URL
140
+ (e.g. `compat` for `https://compat.spec.whatwg.org/`). For specs developed on
141
+ GitHub, this is usually the name of repository that holds the spec.
142
+
143
+ The `shortname` property is always set.
144
+
145
+
146
+ ### `title`
147
+
148
+ The title of the spec. The title is either retrieved from the
149
+ [W3C API](https://w3c.github.io/w3c-api/) for W3C specs,
150
+ [Specref](https://www.specref.org/) or from the spec itself. The
151
+ [`source`](#source) property details the actual provenance.
152
+
153
+ The `title` property is always set.
154
+
155
+
156
+ ### `shortTitle`
157
+
158
+ The short title of the spec. In most cases, the short title is generated from
159
+ `title` by dropping terms such as "Module", "Level", or "Standard". In some
160
+ cases, the short title is set manually.
161
+
162
+ The `shortTitle` property is always set. When there is no meaningful short
163
+ title, the property is set to the actual (possibly long) title of the spec.
164
+
165
+
166
+ ### `categories`
167
+
168
+ An array that contains the list of categories that the spec belongs to. The only
169
+ possible value so far is `"browser"`, which means that the spec targets web
170
+ browsers.
171
+
172
+ The `categories` property is always set. Value may be an empty array for some of
173
+ the specs in the `web-specs` package. Value always contains `"browser"` for
174
+ specs in the `browser-specs` package.
175
+
176
+
177
+ ### `series`
178
+
179
+ An object that describes the series that the spec is part of. A series includes
180
+ existing levels/versions of the spec. For instance, CSS Color Module Level 4
181
+ belongs to the same series as CSS Color Module Level 3 and CSS Color Module
182
+ Level 5.
183
+
184
+ Please note that the list only contains specs that are deemed to be
185
+ [of interest](#spec-selection-criteria). In particular, the list does not
186
+ contain levels and versions that have been fully superseded, and may not contain
187
+ early drafts of new levels and versions either.
188
+
189
+ The `series` property is always set.
190
+
191
+
192
+ #### `series.shortname`
193
+
194
+ A shortname that uniquely identifies the series. In most cases, the shortname
195
+ is the shortname of the spec without the level or version number. For instance,
196
+ the series' shortname for `css-color-5` is `css-color`. When a specification is
197
+ not versioned, the series' shortname is identical to the spec's shortname.
198
+
199
+ The `shortname` property is always set.
200
+
201
+
202
+ #### `series.currentSpecification`
203
+
204
+ The shortname of the spec that should be regarded as the current level or
205
+ version in the series. The current spec in a series is up to the group who
206
+ develops the series. In most cases, the current spec is the latest level or
207
+ version in the series that is a "full" spec (see
208
+ [`seriesComposition`](#seriescomposition)).
209
+
210
+ The `currentSpecification` property is always set.
211
+
212
+
213
+ #### `series.title`
214
+
215
+
216
+ The version-less version of the title of the spec which can be used to refer to
217
+ all specs in the series. The title is either retrieved from the
218
+ [W3C API](https://w3c.github.io/w3c-api/) for W3C specs, or derived from the
219
+ spec's [`title`](#title).
220
+
221
+ The `title` property is always set.
222
+
223
+
224
+ #### `series.shortTitle`
225
+
226
+
227
+ The short title of the series title. In most cases, the short title is generated
228
+ from [`series.title`](#seriestitle) by dropping terms such as "Module", "Level",
229
+ or "Standard". In some cases, the short title is set manually.
230
+
231
+ The `shortTitle` property is always set. When there is no meaningful short
232
+ title, the property is set to the actual (possibly long) series title.
233
+
234
+
235
+ #### `series.releaseUrl`
236
+
237
+ The URL of the latest published snapshot for the spec series. For leveled specs
238
+ (those that create a series), this matches the unversioned URL. That
239
+ unversioned URL should return the specification identified by the
240
+ [`currentSpecification`](#seriescurrentspecification) property.
241
+
242
+ For instance, this property will be set to `https://www.w3.org/TR/css-fonts/`
243
+ for all specifications in the CSS Fonts series.
244
+
245
+ For non-leveled specs, this matches the [`url`](#url) property.
246
+
247
+ The `releaseUrl` property is only set for W3C specs published as TR documents.
248
+
249
+
250
+ #### `series.nightlyUrl`
251
+
252
+ For leveled specs (those that create a series), this matches the unversioned URL
253
+ that allows to access the latest Editor's Draft of the current specification in
254
+ the series.
255
+
256
+ For instance, this property will be set to `https://drafts.csswg.org/css-fonts/`
257
+ for all specifications in the CSS Fonts series.
258
+
259
+ For specs that are not part of a series of specs, this matches the
260
+ [`nightly.url`](#nightlyurl) property.
261
+
262
+ The `nightlyUrl` property is always set.
263
+
264
+
265
+ ### `seriesVersion`
266
+
267
+ The level or version of the spec, represented as an `x`, `x.y` or `x.y.z` string
268
+ with `x`, `y` and `z` numbers, and `x` always greater than or equal to `1`. For
269
+ instance, this property will have the value `1.2` (as a string, so enclosed
270
+ in `"`) for the WAI-ARIA 1.2 spec.
271
+
272
+ The `seriesVersion` property is only set for specs that have a level or version
273
+ number.
274
+
275
+
276
+ ### `seriesComposition`
277
+
278
+ Whether the spec is a standalone spec, or whether it is a delta spec over the
279
+ previous level or version in the series. Possible values are `full` or `delta`.
280
+
281
+ The `seriesComposition` property is always set.
282
+
283
+
284
+ ### `seriesPrevious`
285
+
286
+ The `shortname` of the previous spec in the series.
287
+
288
+ The `seriesPrevious` property is only set where there is a previous level or
289
+ version.
290
+
291
+
292
+ ### `seriesNext`
293
+
294
+ The `shortname` of the next spec in the series.
295
+
296
+ The `seriesNext` property is only set where there is a next level or version.
297
+
298
+
299
+ ### `organization`
300
+
301
+ The name of the standardization organization that owns the spec such as `W3C`,
302
+ `WHATWG`, `IETF`, `Ecma International`, `Khronos Group`.
303
+
304
+ The `organization` property is always set.
305
+
306
+
307
+ ### `groups`
308
+
309
+ The list the groups that develop (or developed) the spec. Each item in the array
310
+ is an object with a `name` property that contains the human-readable name of the
311
+ group and a `url` property that targets the homepage of the group.
312
+
313
+ The `groups` property is always set. In most cases, a spec is developed by one
314
+ and only one group.
315
+
316
+
317
+ ### `release`
318
+
319
+ An object that represents the latest published snapshot of the spec, when it
320
+ exists.
321
+
322
+ The `release` property is only set for W3C specs published as TR documents.
323
+
324
+
325
+ #### `release.url`
326
+
327
+ The URL of the latest published snapshot of the spec. Matches the versioned
328
+ URL (see [`url`](#url)).
329
+
330
+ The `url` property is always set.
331
+
332
+
333
+ #### `release.filename`
334
+
335
+ The filename of the resource that gets served when the default URL is fetched.
336
+ For instance, the filename for `https://www.w3.org/TR/presentation-api/` is
337
+ `Overview.html`, meaning that the specification could also be retrieved from
338
+ `https://www.w3.org/TR/presentation-api/Overview.html`. The filename may be
339
+ useful to distinguish links to self in a spec.
340
+
341
+ The `filename` property is always set.
342
+
343
+
344
+ #### `release.pages`
345
+
346
+ The list of absolute page URLs when the spec is a multipage spec.
347
+
348
+ The `pages` property is only set for specs identified as multipage specs.
349
+
350
+
351
+ ### `nightly`
352
+
353
+ An object that represents the latest Editor's Draft of the spec, or the living
354
+ standard when the concept of Editor's Draft does not exist.
355
+
356
+ The `nightly` property is always set.
357
+
358
+
359
+ #### `nightly.url`
360
+
361
+ The URL of the latest Editor's Draft or of the living standard.
362
+
363
+ The URL is either retrieved from the [W3C API](https://w3c.github.io/w3c-api/)
364
+ for W3C specs, or [Specref](https://www.specref.org/). The document at the
365
+ versioned URL is considered to be the latest Editor's Draft if the spec does
366
+ neither exist in the W3C API nor in Specref. The [`source`](#source) property
367
+ details the actual provenance.
368
+
369
+ The `url` property is always set.
370
+
371
+
372
+ #### `nightly.filename`
373
+
374
+ The filename of the resource that gets served when the default URL is fetched.
375
+ For instance, the filename for `https://w3c.github.io/presentation-api/` is
376
+ `index.html`, meaning that the specification could also be retrieved from
377
+ `https://w3c.github.io/presentation-api/index.html`. The filename may be
378
+ useful to distinguish links to self in a spec.
379
+
380
+ The `filename` property is always set.
381
+
382
+
383
+ #### `nightly.pages`
384
+
385
+ The list of absolute page URLs when the spec is a multipage spec.
386
+
387
+ The `pages` property is only set for specs identified as multipage specs.
388
+
389
+
390
+ #### `nightly.repository`
391
+
392
+ The URL of the repository that contains the source of the Editor's Draft or of
393
+ the living standard.
394
+
395
+ The URL is either retrieved from the [Specref](https://www.specref.org/) or
396
+ computed from `nightly.url`.
397
+
398
+ The `repository` property is always set except for IETF specs where such a repo does not always exist.
399
+
400
+
401
+ #### `nightly.sourcePath`
402
+
403
+ The relative path to the filename that contains the source of the Editor's Draft
404
+ or of the living standard at the HEAD of the default branch of the repository.
405
+
406
+ That path is computed by parsing the contents of the repository for common
407
+ patterns. The info must be specified in `specs.json` for specifications that do
408
+ not follow a common pattern.
409
+
410
+ The `sourcePath` property is always set when `repository` is set.
411
+
412
+ **Note:** The path is relative to the root of the repository, and only valid in
413
+ the default branch of the repository. If needed, the source may be fetched from
414
+ the absolute HTTPS URL `${nightly.repository}/blob/HEAD/${nightly.sourcePath}`.
415
+
416
+
417
+ ### `tests`
418
+
419
+ An object that links the specification with its test suite when it has one.
420
+
421
+
422
+ #### `tests.repository`
423
+
424
+ The URL of the repository that contains the test suite of the specification,
425
+ typically `https://github.com/web-platform-tests/wpt`.
426
+
427
+ The `repository` property is always set when the `tests` object is present.
428
+
429
+ #### `tests.testPaths`
430
+
431
+ The list of relative paths to the actual tests at the HEAD of the default branch
432
+ of the test repository.
433
+
434
+ For test suites within [Web Platform
435
+ Tests](https://github.com/web-platform-tests/wpt), the list is determined by
436
+ looking at `META.yml` files within each folder.
437
+
438
+ The `testPaths` array typically only contains one entry, but tests of a given
439
+ spec are sometimes spread over multiple folders. For instance, that is the case
440
+ for DOM and HTML tests.
441
+
442
+ The `testPaths` property is usually set when the `tests` object is present. When
443
+ absent, that means that the entire repository is the test suite.
444
+
445
+ #### `tests.excludePaths`
446
+
447
+ The list of relative sub-paths of paths listed in the `testPaths` property that
448
+ do not contain tests for the underlying spec. For instance, tests for the
449
+ WebXR Device API are under the
450
+ [`webxr`](https://github.com/web-platform-tests/wpt/tree/master/webxr) folder,
451
+ but several folders under `webxr` actually contain test suites for WebXR module
452
+ specs and as such need to be excluded from the test suite of the WebXR Device
453
+ API spec.
454
+
455
+ The `excludePaths` property is seldom set.
456
+
457
+
458
+ ### `source`
459
+
460
+ The provenance for the `title` and `nightly` property values. Can be one of:
461
+ - `w3c`: information retrieved from the [W3C API](https://w3c.github.io/w3c-api/)
462
+ - `specref`: information retrieved from [Specref](https://www.specref.org/)
463
+ - `spec`: information retrieved from the spec itself
464
+
465
+ The `source` property is always set.
466
+
467
+
468
+ ## How to add/update/delete a spec
469
+
470
+ If you believe that a spec should be added, modified, or removed from the list,
471
+ or if you would like to otherwise contribute to this project, please check
472
+ [contributing instructions](CONTRIBUTING.md).
473
+
474
+
475
+ ## Spec selection criteria
476
+
477
+ This repository contains a curated list of technical Web specifications that are
478
+ deemed relevant for the Web platform. Roughly speaking, this list should match
479
+ the list of web specs actively developed by W3C, the WHATWG and a few other
480
+ organizations.
481
+
482
+ To try to make things more concrete, the following criteria are used to assess
483
+ whether a spec should a priori appear in the list:
484
+
485
+ 1. The spec is stable or in development. Superseded and abandoned specs will not
486
+ appear in the list. For instance, the list contains the HTML LS spec, but not
487
+ HTML 4.01 or HTML 5).
488
+ 2. The spec is being developed by a well-known standardization or
489
+ pre-standardization group. Today, this means a W3C Working Group or Community
490
+ Group, the WHATWG, the IETF, the TC39 group or the Khronos Group.
491
+ 4. The spec sits at the application layer or is "close to it". For instance,
492
+ most IETF specs are likely out of scope, but some that are exposed to Web developers are in scope.
493
+ 5. The spec defines normative content (terms, CSS, IDL), or it contains
494
+ informative content that other specs often need to refer to (e.g. guidelines
495
+ from horizontal activities such as accessibility, internationalization, privacy
496
+ and security).
497
+
498
+ There are and there will be exceptions to the rule. Besides, some of these
499
+ criteria remain fuzzy and/or arbitrary, and we expect them to evolve over time,
500
+ typically driven by needs expressed by projects that may want to use the list.
501
+
502
+
503
+ ## Versioning
504
+
505
+ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
506
+ with the following increment rules given a `major.minor.patch` version:
507
+ - `major`: A property disappeared, its meaning has changed, or some other
508
+ incompatible API change was made. When the `major` number gets incremented, code
509
+ that parses the list likely needs to be updated.
510
+ - `minor`: A new property was added, the list of specs changed (a new spec
511
+ added, or a spec was removed). Code that parses the list should continue to work
512
+ undisturbed, but please note that there is no guarantee that a spec that was
513
+ present in the previous version will continue to appear in the new version.
514
+ Situations where a spec gets dropped should remain scarce. If you believe that
515
+ removal of a spec should rather trigger a `major` update, please
516
+ [raise an issue](https://github.com/w3c/browser-specs/issues/new) and explain
517
+ how it affects your project.
518
+ - `patch`: Info about one or more specs changed. Minor updates were made to the
519
+ code that don't affect the list.
39
520
  <!-- COMMON-BODY: end -->
40
521
 
41
522
  ## Spec selection criteria