reffy 20.0.13 → 20.0.15
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.
- package/LICENSE +21 -21
- package/README.md +151 -151
- package/index.js +29 -29
- package/package.json +5 -5
- package/reffy.js +324 -324
- package/schemas/browserlib/extract-algorithms.json +52 -52
- package/schemas/browserlib/extract-cssdfn.json +108 -108
- package/schemas/browserlib/extract-dfns.json +90 -90
- package/schemas/browserlib/extract-elements.json +17 -17
- package/schemas/browserlib/extract-events.json +31 -31
- package/schemas/browserlib/extract-headings.json +19 -19
- package/schemas/browserlib/extract-ids.json +7 -7
- package/schemas/browserlib/extract-links.json +12 -12
- package/schemas/browserlib/extract-refs.json +12 -12
- package/schemas/common.json +876 -876
- package/schemas/files/extracts/algorithms.json +12 -12
- package/schemas/files/extracts/css.json +16 -16
- package/schemas/files/extracts/dfns.json +12 -12
- package/schemas/files/extracts/elements.json +12 -12
- package/schemas/files/extracts/events.json +12 -12
- package/schemas/files/extracts/headings.json +12 -12
- package/schemas/files/extracts/ids.json +12 -12
- package/schemas/files/extracts/links.json +12 -12
- package/schemas/files/extracts/refs.json +12 -12
- package/schemas/files/index.json +59 -59
- package/schemas/postprocessing/events.json +50 -50
- package/schemas/postprocessing/idlnames-parsed.json +27 -27
- package/schemas/postprocessing/idlnames.json +17 -17
- package/schemas/postprocessing/idlparsed.json +67 -67
- package/src/browserlib/clone-and-clean.mjs +24 -24
- package/src/browserlib/create-outline.mjs +353 -353
- package/src/browserlib/extract-algorithms.mjs +723 -723
- package/src/browserlib/extract-cddl.mjs +125 -125
- package/src/browserlib/extract-dfns.mjs +1093 -1093
- package/src/browserlib/extract-headings.mjs +76 -76
- package/src/browserlib/extract-ids.mjs +28 -28
- package/src/browserlib/extract-links.mjs +45 -45
- package/src/browserlib/extract-references.mjs +308 -308
- package/src/browserlib/extract-webidl.mjs +89 -89
- package/src/browserlib/get-absolute-url.mjs +29 -29
- package/src/browserlib/get-code-elements.mjs +20 -20
- package/src/browserlib/get-generator.mjs +26 -26
- package/src/browserlib/get-lastmodified-date.mjs +13 -13
- package/src/browserlib/get-revision.mjs +12 -12
- package/src/browserlib/get-title.mjs +14 -14
- package/src/browserlib/informative-selector.mjs +24 -24
- package/src/browserlib/map-ids-to-headings.mjs +173 -173
- package/src/browserlib/reffy.json +85 -85
- package/src/browserlib/trim-spaces.mjs +35 -35
- package/src/cli/check-missing-dfns.js +587 -587
- package/src/cli/merge-crawl-results.js +132 -132
- package/src/cli/parse-webidl.js +447 -447
- package/src/lib/css-grammar-parse-tree.schema.json +109 -109
- package/src/lib/css-grammar-parser.js +440 -440
- package/src/lib/fetch.js +51 -51
- package/src/lib/markdown-report.js +360 -360
- package/src/lib/mock-server.js +218 -218
- package/src/lib/post-processor.js +322 -322
- package/src/lib/throttled-queue.js +129 -129
- package/src/postprocessing/annotate-links.js +41 -41
- package/src/postprocessing/csscomplete.js +48 -48
- package/src/postprocessing/idlnames.js +391 -391
- package/src/postprocessing/idlparsed.js +179 -179
- package/src/postprocessing/patch-dfns.js +51 -51
- package/src/specs/missing-css-rules.json +197 -197
- package/src/specs/spec-equivalents.json +149 -149
- package/src/browserlib/extract-editors.mjs~ +0 -14
- package/src/browserlib/extract-events.mjs~ +0 -3
- package/src/browserlib/generate-es-dfn-report.sh~ +0 -4
- package/src/browserlib/get-revision.mjs~ +0 -7
- package/src/cli/csstree-grammar-check.js +0 -28
- package/src/cli/csstree-grammar-check.js~ +0 -10
- package/src/cli/csstree-grammar-parser.js +0 -11
- package/src/cli/csstree-grammar-parser.js~ +0 -1
- package/src/cli/extract-editors.js~ +0 -38
- package/src/cli/process-specs.js~ +0 -28
- package/src/postprocessing/annotate-links.js~ +0 -8
- package/src/postprocessing/events.js~ +0 -245
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema#",
|
|
3
|
-
"$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-algorithms.json",
|
|
4
|
-
|
|
5
|
-
"$defs": {
|
|
6
|
-
"step": {
|
|
7
|
-
"type": "object",
|
|
8
|
-
"additionalProperties": false,
|
|
9
|
-
"properties": {
|
|
10
|
-
"html": { "type": "string" },
|
|
11
|
-
"rationale": { "type": "string" },
|
|
12
|
-
"operation": { "type": "string" },
|
|
13
|
-
"case": { "type": "string" },
|
|
14
|
-
"steps": {
|
|
15
|
-
"type": "array",
|
|
16
|
-
"items": { "$ref": "#/$defs/step" },
|
|
17
|
-
"minItems": 1
|
|
18
|
-
},
|
|
19
|
-
"ignored": {
|
|
20
|
-
"type": "array",
|
|
21
|
-
"items": { "type": "string" },
|
|
22
|
-
"minItems": 1
|
|
23
|
-
},
|
|
24
|
-
"additional": {
|
|
25
|
-
"type": "array",
|
|
26
|
-
"items": { "$ref": "#/$defs/step" },
|
|
27
|
-
"minItems": 1
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
"type": "array",
|
|
34
|
-
"items": {
|
|
35
|
-
"type": "object",
|
|
36
|
-
"additionalProperties": false,
|
|
37
|
-
"required": ["rationale"],
|
|
38
|
-
"properties": {
|
|
39
|
-
"name": { "type": "string" },
|
|
40
|
-
"href": { "$ref": "../common.json#/$defs/url" },
|
|
41
|
-
"html": { "type": "string" },
|
|
42
|
-
"rationale": { "type": "string" },
|
|
43
|
-
"operation": { "type": "string" },
|
|
44
|
-
"case": { "type": "string" },
|
|
45
|
-
"steps": {
|
|
46
|
-
"type": "array",
|
|
47
|
-
"items": { "$ref": "#/$defs/step" },
|
|
48
|
-
"minItems": 1
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema#",
|
|
3
|
+
"$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-algorithms.json",
|
|
4
|
+
|
|
5
|
+
"$defs": {
|
|
6
|
+
"step": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"html": { "type": "string" },
|
|
11
|
+
"rationale": { "type": "string" },
|
|
12
|
+
"operation": { "type": "string" },
|
|
13
|
+
"case": { "type": "string" },
|
|
14
|
+
"steps": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": { "$ref": "#/$defs/step" },
|
|
17
|
+
"minItems": 1
|
|
18
|
+
},
|
|
19
|
+
"ignored": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": { "type": "string" },
|
|
22
|
+
"minItems": 1
|
|
23
|
+
},
|
|
24
|
+
"additional": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": { "$ref": "#/$defs/step" },
|
|
27
|
+
"minItems": 1
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["rationale"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"name": { "type": "string" },
|
|
40
|
+
"href": { "$ref": "../common.json#/$defs/url" },
|
|
41
|
+
"html": { "type": "string" },
|
|
42
|
+
"rationale": { "type": "string" },
|
|
43
|
+
"operation": { "type": "string" },
|
|
44
|
+
"case": { "type": "string" },
|
|
45
|
+
"steps": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": { "$ref": "#/$defs/step" },
|
|
48
|
+
"minItems": 1
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema#",
|
|
3
|
-
"$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-cssdfn.json",
|
|
4
|
-
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": ["properties", "atrules", "selectors", "values"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"properties": {
|
|
10
|
-
"type": "array",
|
|
11
|
-
"items": {
|
|
12
|
-
"type": "object",
|
|
13
|
-
"additionalProperties": true,
|
|
14
|
-
"required": ["name"],
|
|
15
|
-
"properties": {
|
|
16
|
-
"name": { "$ref": "../common.json#/$defs/cssPropertyName" },
|
|
17
|
-
"href": { "$ref": "../common.json#/$defs/url" },
|
|
18
|
-
"value": { "$ref": "../common.json#/$defs/cssValue" },
|
|
19
|
-
"newValues": { "$ref": "../common.json#/$defs/cssValue" },
|
|
20
|
-
"values": { "$ref": "../common.json#/$defs/cssValues" },
|
|
21
|
-
"legacyAliasOf": { "$ref": "../common.json#/$defs/cssPropertyName" },
|
|
22
|
-
"styleDeclaration": {
|
|
23
|
-
"type": "array",
|
|
24
|
-
"items": { "type": "string" },
|
|
25
|
-
"minItems": 1
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
"atrules": {
|
|
32
|
-
"type": "array",
|
|
33
|
-
"items": {
|
|
34
|
-
"type": "object",
|
|
35
|
-
"required": ["name", "descriptors"],
|
|
36
|
-
"additionalProperties": false,
|
|
37
|
-
"properties": {
|
|
38
|
-
"name": { "type": "string", "pattern": "^@" },
|
|
39
|
-
"href": { "$ref": "../common.json#/$defs/url" },
|
|
40
|
-
"value": { "$ref": "../common.json#/$defs/cssValue" },
|
|
41
|
-
"prose": { "type": "string" },
|
|
42
|
-
"descriptors": {
|
|
43
|
-
"type": "array",
|
|
44
|
-
"items": {
|
|
45
|
-
"type": "object",
|
|
46
|
-
"required": ["name", "for"],
|
|
47
|
-
"additionalProperties": true,
|
|
48
|
-
"properties": {
|
|
49
|
-
"name": { "type": "string" },
|
|
50
|
-
"for": { "type": "string" },
|
|
51
|
-
"href": { "$ref": "../common.json#/$defs/url" },
|
|
52
|
-
"value": { "$ref": "../common.json#/$defs/cssValue" },
|
|
53
|
-
"values": { "$ref": "../common.json#/$defs/cssValues" }
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"values": { "$ref": "../common.json#/$defs/cssValues" }
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
"selectors": {
|
|
63
|
-
"type": "array",
|
|
64
|
-
"items": {
|
|
65
|
-
"type": "object",
|
|
66
|
-
"required": ["name"],
|
|
67
|
-
"additionalProperties": false,
|
|
68
|
-
"properties": {
|
|
69
|
-
"name": { "$ref": "../common.json#/$defs/cssPropertyName" },
|
|
70
|
-
"href": { "$ref": "../common.json#/$defs/url" },
|
|
71
|
-
"prose": { "type": "string" },
|
|
72
|
-
"value": { "$ref": "../common.json#/$defs/cssValue" },
|
|
73
|
-
"values": { "$ref": "../common.json#/$defs/cssValues" }
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
"values": {
|
|
79
|
-
"type": "array",
|
|
80
|
-
"items": {
|
|
81
|
-
"type": "object",
|
|
82
|
-
"required": ["name", "type"],
|
|
83
|
-
"additionalProperties": false,
|
|
84
|
-
"properties": {
|
|
85
|
-
"name": { "type": "string", "pattern": "^<[^>]+>$|^.*()$" },
|
|
86
|
-
"href": { "$ref": "../common.json#/$defs/url" },
|
|
87
|
-
"type": { "type": "string", "enum": ["type", "function"] },
|
|
88
|
-
"prose": { "type": "string" },
|
|
89
|
-
"value": { "$ref": "../common.json#/$defs/cssValue" },
|
|
90
|
-
"values": { "$ref": "../common.json#/$defs/cssValues" }
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
"warnings": {
|
|
96
|
-
"type": "array",
|
|
97
|
-
"items": {
|
|
98
|
-
"type": "object",
|
|
99
|
-
"required": ["msg", "name"],
|
|
100
|
-
"properties": {
|
|
101
|
-
"msg": { "type": "string" },
|
|
102
|
-
"name": { "type": "string" }
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"minItems": 1
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema#",
|
|
3
|
+
"$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-cssdfn.json",
|
|
4
|
+
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["properties", "atrules", "selectors", "values"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"properties": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"additionalProperties": true,
|
|
14
|
+
"required": ["name"],
|
|
15
|
+
"properties": {
|
|
16
|
+
"name": { "$ref": "../common.json#/$defs/cssPropertyName" },
|
|
17
|
+
"href": { "$ref": "../common.json#/$defs/url" },
|
|
18
|
+
"value": { "$ref": "../common.json#/$defs/cssValue" },
|
|
19
|
+
"newValues": { "$ref": "../common.json#/$defs/cssValue" },
|
|
20
|
+
"values": { "$ref": "../common.json#/$defs/cssValues" },
|
|
21
|
+
"legacyAliasOf": { "$ref": "../common.json#/$defs/cssPropertyName" },
|
|
22
|
+
"styleDeclaration": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": { "type": "string" },
|
|
25
|
+
"minItems": 1
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
"atrules": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"required": ["name", "descriptors"],
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"properties": {
|
|
38
|
+
"name": { "type": "string", "pattern": "^@" },
|
|
39
|
+
"href": { "$ref": "../common.json#/$defs/url" },
|
|
40
|
+
"value": { "$ref": "../common.json#/$defs/cssValue" },
|
|
41
|
+
"prose": { "type": "string" },
|
|
42
|
+
"descriptors": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"required": ["name", "for"],
|
|
47
|
+
"additionalProperties": true,
|
|
48
|
+
"properties": {
|
|
49
|
+
"name": { "type": "string" },
|
|
50
|
+
"for": { "type": "string" },
|
|
51
|
+
"href": { "$ref": "../common.json#/$defs/url" },
|
|
52
|
+
"value": { "$ref": "../common.json#/$defs/cssValue" },
|
|
53
|
+
"values": { "$ref": "../common.json#/$defs/cssValues" }
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"values": { "$ref": "../common.json#/$defs/cssValues" }
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
"selectors": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"required": ["name"],
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"properties": {
|
|
69
|
+
"name": { "$ref": "../common.json#/$defs/cssPropertyName" },
|
|
70
|
+
"href": { "$ref": "../common.json#/$defs/url" },
|
|
71
|
+
"prose": { "type": "string" },
|
|
72
|
+
"value": { "$ref": "../common.json#/$defs/cssValue" },
|
|
73
|
+
"values": { "$ref": "../common.json#/$defs/cssValues" }
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
"values": {
|
|
79
|
+
"type": "array",
|
|
80
|
+
"items": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"required": ["name", "type"],
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"properties": {
|
|
85
|
+
"name": { "type": "string", "pattern": "^<[^>]+>$|^.*()$" },
|
|
86
|
+
"href": { "$ref": "../common.json#/$defs/url" },
|
|
87
|
+
"type": { "type": "string", "enum": ["type", "function"] },
|
|
88
|
+
"prose": { "type": "string" },
|
|
89
|
+
"value": { "$ref": "../common.json#/$defs/cssValue" },
|
|
90
|
+
"values": { "$ref": "../common.json#/$defs/cssValues" }
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
|
|
95
|
+
"warnings": {
|
|
96
|
+
"type": "array",
|
|
97
|
+
"items": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"required": ["msg", "name"],
|
|
100
|
+
"properties": {
|
|
101
|
+
"msg": { "type": "string" },
|
|
102
|
+
"name": { "type": "string" }
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"minItems": 1
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema#",
|
|
3
|
-
"$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-dfns.json",
|
|
4
|
-
|
|
5
|
-
"$defs": {
|
|
6
|
-
"heading": {
|
|
7
|
-
"type": "object",
|
|
8
|
-
"additionalProperties": false,
|
|
9
|
-
"required": ["href", "title"],
|
|
10
|
-
"properties": {
|
|
11
|
-
"id": { "$ref": "../common.json#/$defs/id" },
|
|
12
|
-
"href": { "$ref": "../common.json#/$defs/url" },
|
|
13
|
-
"title": { "type": "string" },
|
|
14
|
-
"number": { "$ref": "../common.json#/$defs/headingNumber" },
|
|
15
|
-
"alternateIds": { "type": "array", "items": { "$ref": "../common.json#/$defs/id"} }
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
"type": "array",
|
|
21
|
-
"items": {
|
|
22
|
-
"type": "object",
|
|
23
|
-
"additionalProperties": false,
|
|
24
|
-
"required": ["id", "href", "linkingText", "localLinkingText",
|
|
25
|
-
"type", "for", "access", "informative", "heading", "definedIn"],
|
|
26
|
-
"properties": {
|
|
27
|
-
"id": { "$ref": "../common.json#/$defs/id" },
|
|
28
|
-
"href": { "$ref": "../common.json#/$defs/url" },
|
|
29
|
-
"linkingText": {
|
|
30
|
-
"type": "array",
|
|
31
|
-
"items": { "type": "string" }
|
|
32
|
-
},
|
|
33
|
-
"localLinkingText": {
|
|
34
|
-
"type": "array",
|
|
35
|
-
"items": { "type": "string" }
|
|
36
|
-
},
|
|
37
|
-
"type": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"enum": [
|
|
40
|
-
"property", "descriptor", "value", "type",
|
|
41
|
-
"at-rule", "function", "selector",
|
|
42
|
-
"namespace", "interface", "constructor", "method", "argument",
|
|
43
|
-
"attribute", "callback", "dictionary", "dict-member", "enum",
|
|
44
|
-
"enum-value", "exception", "const", "typedef", "stringifier",
|
|
45
|
-
"serializer", "iterator", "maplike", "setlike", "extended-attribute",
|
|
46
|
-
"event", "permission",
|
|
47
|
-
"element", "element-state", "element-attr", "attr-value",
|
|
48
|
-
"cddl-module", "cddl-type", "cddl-parameter", "cddl-key", "cddl-value",
|
|
49
|
-
"scheme", "http-header",
|
|
50
|
-
"grammar", "abstract-op", "dfn"
|
|
51
|
-
],
|
|
52
|
-
"$comment": "Types taken from src/browserlib/extract-dfns.mjs"
|
|
53
|
-
},
|
|
54
|
-
"for": {
|
|
55
|
-
"type": "array",
|
|
56
|
-
"items": { "type": "string" }
|
|
57
|
-
},
|
|
58
|
-
"access": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"enum": ["private", "public"]
|
|
61
|
-
},
|
|
62
|
-
"informative": {
|
|
63
|
-
"type": "boolean"
|
|
64
|
-
},
|
|
65
|
-
"heading": { "$ref": "#/$defs/heading" },
|
|
66
|
-
"definedIn": {
|
|
67
|
-
"type": "string"
|
|
68
|
-
},
|
|
69
|
-
"links": {
|
|
70
|
-
"type": "array",
|
|
71
|
-
"items": {
|
|
72
|
-
"type": "object",
|
|
73
|
-
"additionalProperties": false,
|
|
74
|
-
"required": ["type", "id", "href", "name"],
|
|
75
|
-
"properties": {
|
|
76
|
-
"type": { "type": "string", "enum": ["dev"] },
|
|
77
|
-
"id": { "$ref": "../common.json#/$defs/id" },
|
|
78
|
-
"name": { "type": "string" },
|
|
79
|
-
"href": { "$ref": "../common.json#/$defs/url" },
|
|
80
|
-
"heading": { "$ref": "#/$defs/heading" }
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"htmlProse": {
|
|
85
|
-
"type": "string",
|
|
86
|
-
"minLength": 1
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema#",
|
|
3
|
+
"$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-dfns.json",
|
|
4
|
+
|
|
5
|
+
"$defs": {
|
|
6
|
+
"heading": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"required": ["href", "title"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"id": { "$ref": "../common.json#/$defs/id" },
|
|
12
|
+
"href": { "$ref": "../common.json#/$defs/url" },
|
|
13
|
+
"title": { "type": "string" },
|
|
14
|
+
"number": { "$ref": "../common.json#/$defs/headingNumber" },
|
|
15
|
+
"alternateIds": { "type": "array", "items": { "$ref": "../common.json#/$defs/id"} }
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": ["id", "href", "linkingText", "localLinkingText",
|
|
25
|
+
"type", "for", "access", "informative", "heading", "definedIn"],
|
|
26
|
+
"properties": {
|
|
27
|
+
"id": { "$ref": "../common.json#/$defs/id" },
|
|
28
|
+
"href": { "$ref": "../common.json#/$defs/url" },
|
|
29
|
+
"linkingText": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": { "type": "string" }
|
|
32
|
+
},
|
|
33
|
+
"localLinkingText": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": { "type": "string" }
|
|
36
|
+
},
|
|
37
|
+
"type": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": [
|
|
40
|
+
"property", "descriptor", "value", "type",
|
|
41
|
+
"at-rule", "function", "selector",
|
|
42
|
+
"namespace", "interface", "constructor", "method", "argument",
|
|
43
|
+
"attribute", "callback", "dictionary", "dict-member", "enum",
|
|
44
|
+
"enum-value", "exception", "const", "typedef", "stringifier",
|
|
45
|
+
"serializer", "iterator", "maplike", "setlike", "extended-attribute",
|
|
46
|
+
"event", "permission",
|
|
47
|
+
"element", "element-state", "element-attr", "attr-value",
|
|
48
|
+
"cddl-module", "cddl-type", "cddl-parameter", "cddl-key", "cddl-value",
|
|
49
|
+
"scheme", "http-header",
|
|
50
|
+
"grammar", "abstract-op", "dfn"
|
|
51
|
+
],
|
|
52
|
+
"$comment": "Types taken from src/browserlib/extract-dfns.mjs"
|
|
53
|
+
},
|
|
54
|
+
"for": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": { "type": "string" }
|
|
57
|
+
},
|
|
58
|
+
"access": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"enum": ["private", "public"]
|
|
61
|
+
},
|
|
62
|
+
"informative": {
|
|
63
|
+
"type": "boolean"
|
|
64
|
+
},
|
|
65
|
+
"heading": { "$ref": "#/$defs/heading" },
|
|
66
|
+
"definedIn": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"links": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"additionalProperties": false,
|
|
74
|
+
"required": ["type", "id", "href", "name"],
|
|
75
|
+
"properties": {
|
|
76
|
+
"type": { "type": "string", "enum": ["dev"] },
|
|
77
|
+
"id": { "$ref": "../common.json#/$defs/id" },
|
|
78
|
+
"name": { "type": "string" },
|
|
79
|
+
"href": { "$ref": "../common.json#/$defs/url" },
|
|
80
|
+
"heading": { "$ref": "#/$defs/heading" }
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"htmlProse": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"minLength": 1
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema#",
|
|
3
|
-
"$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-elements.json",
|
|
4
|
-
|
|
5
|
-
"type": "array",
|
|
6
|
-
"items": {
|
|
7
|
-
"type": "object",
|
|
8
|
-
"additionalProperties": false,
|
|
9
|
-
"required": ["name", "href"],
|
|
10
|
-
"properties": {
|
|
11
|
-
"name": { "type": "string" },
|
|
12
|
-
"interface": { "$ref": "../common.json#/$defs/interface" },
|
|
13
|
-
"href": { "$ref": "../common.json#/$defs/url" },
|
|
14
|
-
"obsolete": { "type": "boolean" }
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema#",
|
|
3
|
+
"$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-elements.json",
|
|
4
|
+
|
|
5
|
+
"type": "array",
|
|
6
|
+
"items": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"required": ["name", "href"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"name": { "type": "string" },
|
|
12
|
+
"interface": { "$ref": "../common.json#/$defs/interface" },
|
|
13
|
+
"href": { "$ref": "../common.json#/$defs/url" },
|
|
14
|
+
"obsolete": { "type": "boolean" }
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema#",
|
|
3
|
-
"$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-events.json",
|
|
4
|
-
|
|
5
|
-
"type": "array",
|
|
6
|
-
"items": {
|
|
7
|
-
"type": "object",
|
|
8
|
-
"additionalProperties": false,
|
|
9
|
-
"required": ["type"],
|
|
10
|
-
"properties": {
|
|
11
|
-
"type": { "type": "string" },
|
|
12
|
-
"interface": { "$ref": "../common.json#/$defs/interface" },
|
|
13
|
-
"targets": {
|
|
14
|
-
"type": "array",
|
|
15
|
-
"items": { "$ref": "../common.json#/$defs/interface" }
|
|
16
|
-
},
|
|
17
|
-
"bubbles": { "type": "boolean" },
|
|
18
|
-
"cancelable": { "type": "boolean" },
|
|
19
|
-
"isExtension": { "type": "boolean" },
|
|
20
|
-
"href": { "$ref": "../common.json#/$defs/url" },
|
|
21
|
-
"src": {
|
|
22
|
-
"type": "object",
|
|
23
|
-
"additionalProperties": false,
|
|
24
|
-
"properties": {
|
|
25
|
-
"format": { "type": "string" },
|
|
26
|
-
"href": { "$ref": "../common.json#/$defs/url" }
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema#",
|
|
3
|
+
"$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-events.json",
|
|
4
|
+
|
|
5
|
+
"type": "array",
|
|
6
|
+
"items": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"required": ["type"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"type": { "type": "string" },
|
|
12
|
+
"interface": { "$ref": "../common.json#/$defs/interface" },
|
|
13
|
+
"targets": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": { "$ref": "../common.json#/$defs/interface" }
|
|
16
|
+
},
|
|
17
|
+
"bubbles": { "type": "boolean" },
|
|
18
|
+
"cancelable": { "type": "boolean" },
|
|
19
|
+
"isExtension": { "type": "boolean" },
|
|
20
|
+
"href": { "$ref": "../common.json#/$defs/url" },
|
|
21
|
+
"src": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"properties": {
|
|
25
|
+
"format": { "type": "string" },
|
|
26
|
+
"href": { "$ref": "../common.json#/$defs/url" }
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema#",
|
|
3
|
-
"$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-headings.json",
|
|
4
|
-
|
|
5
|
-
"type": "array",
|
|
6
|
-
"items": {
|
|
7
|
-
"type": "object",
|
|
8
|
-
"additionalProperties": false,
|
|
9
|
-
"required": ["id", "href", "title", "level"],
|
|
10
|
-
"properties": {
|
|
11
|
-
"id": { "$ref": "../common.json#/$defs/id" },
|
|
12
|
-
"href": { "$ref": "../common.json#/$defs/url" },
|
|
13
|
-
"title": { "type": "string" },
|
|
14
|
-
"level": { "type": "integer" },
|
|
15
|
-
"number": { "$ref": "../common.json#/$defs/headingNumber" },
|
|
16
|
-
"alternateIds": { "type": "array", "items": { "$ref": "../common.json#/$defs/id"} }
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema#",
|
|
3
|
+
"$id": "https://github.com/w3c/reffy/blob/main/schemas/browserlib/extract-headings.json",
|
|
4
|
+
|
|
5
|
+
"type": "array",
|
|
6
|
+
"items": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"required": ["id", "href", "title", "level"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"id": { "$ref": "../common.json#/$defs/id" },
|
|
12
|
+
"href": { "$ref": "../common.json#/$defs/url" },
|
|
13
|
+
"title": { "type": "string" },
|
|
14
|
+
"level": { "type": "integer" },
|
|
15
|
+
"number": { "$ref": "../common.json#/$defs/headingNumber" },
|
|
16
|
+
"alternateIds": { "type": "array", "items": { "$ref": "../common.json#/$defs/id"} }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|