Skip to content

Commit

Permalink
Add spec URLs for web/api subtree
Browse files Browse the repository at this point in the history
Part of #13126
  • Loading branch information
sideshowbarker committed May 13, 2022
1 parent 5cf373e commit 3d62b99
Show file tree
Hide file tree
Showing 69 changed files with 152 additions and 456 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/aescbcparams/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
- Dictionary
- Reference
- Web Crypto API
spec-urls: https://www.w3.org/TR/WebCryptoAPI/#dfn-AesCbcParams
spec-urls: https://w3c.github.io/webcrypto/#dfn-AesCbcParams
---
{{ APIRef("Web Crypto API") }}

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/aesctrparams/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
- Dictionary
- Reference
- Web Crypto API
spec-urls: https://www.w3.org/TR/WebCryptoAPI/#dfn-AesCtrParams
spec-urls: https://w3c.github.io/webcrypto/#dfn-AesCtrParams
---
{{ APIRef("Web Crypto API") }}

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/aesgcmparams/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
- Dictionary
- Reference
- Web Crypto API
spec-urls: https://www.w3.org/TR/WebCryptoAPI/#dfn-AesGcmParams
spec-urls: https://w3c.github.io/webcrypto/#dfn-AesGcmParams
---
{{ APIRef("Web Crypto API") }}

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/aeskeygenparams/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
- Dictionary
- Reference
- Web Crypto API
spec-urls: https://www.w3.org/TR/WebCryptoAPI/#dfn-AesKeyGenParams
spec-urls: https://w3c.github.io/webcrypto/#dfn-AesKeyGenParams
---
{{ APIRef("Web Crypto API") }}The **`AesKeyGenParams`** dictionary of the [Web Crypto API](/en-US/docs/Web/API/Web_Crypto_API) represents the object that should be passed as the `algorithm` parameter into {{domxref("SubtleCrypto.generateKey()")}}, when generating an AES key: that is, when the algorithm is identified as any of [AES-CBC](/en-US/docs/Web/API/SubtleCrypto/encrypt#aes-cbc), [AES-CTR](/en-US/docs/Web/API/SubtleCrypto/encrypt#aes-ctr), [AES-GCM](/en-US/docs/Web/API/SubtleCrypto/encrypt#aes-gcm), or [AES-KW](/en-US/docs/Web/API/SubtleCrypto/wrapKey#aes-kw).

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/api/arraybufferview/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- JavaScript
- Reference
- Typed Arrays
spec-urls: https://webidl.spec.whatwg.org/#ArrayBufferView
---
{{APIRef}}

Expand All @@ -31,6 +32,4 @@ This is a helper type to simplify the specification; it isn't an interface, and

## Specifications

| Specification | Status | Comment |
| -------------------------------------------------------------------------------- | ------------------------ | ------------------- |
| {{SpecName('WebIDL', "#ArrayBufferView", "ArrayBufferView")}} | {{Spec2('WebIDL')}} | Initial definition. |
{{Specifications}}
5 changes: 2 additions & 3 deletions files/en-us/web/api/buffersource/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- JavaScript
- Reference
- Typed Arrays
spec-urls: https://webidl.spec.whatwg.org/#common-BufferSource
---
{{APIRef}}

Expand All @@ -16,6 +17,4 @@ This is a helper type to simplify the specification. It isn't an interface and t

## Specifications

| Specification | Status | Comment |
| ------------------------------------------------------------------------------------ | ------------------------ | ------------------- |
| {{SpecName('WebIDL', "#common-BufferSource", "BufferSource")}} | {{Spec2('WebIDL')}} | Initial definition. |
{{Specifications}}
18 changes: 2 additions & 16 deletions files/en-us/web/api/canvasimagesource/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tags:
- Canvas
- Helper
- Reference
spec-urls: https://html.spec.whatwg.org/multipage/scripting.html#canvasimagesource
---
{{APIRef("Canvas API")}}

Expand All @@ -22,19 +23,4 @@ The interfaces that it allows to be used as image sources are the following:

## Specifications

<table class="no-markdown">
<tbody>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
<tr>
<td>
{{SpecName('HTML WHATWG', "scripting.html#canvasimagesource", "CanvasImageSource")}}
</td>
<td>{{Spec2('HTML WHATWG')}}</td>
<td>Initial definition.</td>
</tr>
</tbody>
</table>
{{Specifications}}
5 changes: 2 additions & 3 deletions files/en-us/web/api/cryptokeypair/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- Dictionary
- Reference
- Web Crypto API
spec-urls: https://w3c.github.io/webcrypto/
---
{{APIRef("Web Crypto API")}}

Expand Down Expand Up @@ -40,9 +41,7 @@ The examples for `SubtleCrypto` methods often use `CryptoKeyPair` objects. For e

## Specifications

| Specification | Status | Comment |
| ------------------------------------ | -------------------------------- | --------------- |
| {{SpecName('Web Crypto API')}} | {{Spec2('Web Crypto API')}} | |
{{Specifications}}

## See also

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/api/css_object_model/css_declaration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tags:
- CSS Object Model
- CSS Declaration
- Reference
spec-urls: https://drafts.csswg.org/cssom/#css-declarations
---
{{ APIRef("CSSOM") }}

Expand Down Expand Up @@ -35,6 +36,4 @@ h1 {

## Specifications

| Specification | Status | Comment |
| ------------------------------------------------------------------------------------ | ------------------------ | ------- |
| {{SpecName('CSSOM', '#css-declarations', 'CSS Declarations')}} | {{Spec2('CSSOM')}} | |
{{Specifications}}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- CSS Declaration Block
- CSS Declarations
- Reference
spec-urls: https://drafts.csswg.org/cssom/#css-declaration-blocks
---
{{ APIRef("CSSOM") }}

Expand Down Expand Up @@ -50,6 +51,4 @@ console.log(rule.style); // a CSSStyleDeclaration object

## Specifications

| Specification | Status | Comment |
| ---------------------------------------------------------------------------------------------------- | ------------------------ | ------- |
| {{SpecName('CSSOM', '#css-declaration-blocks', 'CSS Declaration Blocks')}} | {{Spec2('CSSOM')}} | |
{{Specifications}}
5 changes: 2 additions & 3 deletions files/en-us/web/api/cssomstring/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ tags:
- API
- CSSOM
- Reference
spec-urls: https://drafts.csswg.org/cssom/#cssomstring-type
---
{{APIRef("DOM")}}

Expand All @@ -22,9 +23,7 @@ tags:

## Specifications

| Specification | Status | Comment |
| ---------------------------------------------------------------------------- | ------------------------ | ------------------- |
| {{SpecName('CSSOM', '#cssomstring-type', 'CSSOMString')}} | {{Spec2("CSSOM")}} | Initial definition. |
{{Specifications}}

## See also

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/api/device_memory_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Device Memory API
slug: Web/API/Device_Memory_API
tags:
- Device Memory API
spec-urls: https://w3c.github.io/device-memory/
---
{{DefaultAPISidebar("Device Memory API")}}{{securecontext_header}}{{SeeCompatTable}}

Expand All @@ -26,9 +27,7 @@ You may also use the [Client Hints](/en-US/docs/Web/HTTP/Client_hints) HTTP Head

## Specifications

| Specification | Status | Comment |
| ---------------------------------------- | ------------------------------------ | ------------------- |
| {{SpecName("Device Memory")}} | {{Spec2("Device Memory")}} | Initial definition. |
{{Specifications}}

## Browser compatibility

Expand Down
27 changes: 2 additions & 25 deletions files/en-us/web/api/document/rootelement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ tags:
- Reference
- SVG
- root
spec-urls: https://svgwg.org/svg2-draft/struct.html#__svg__SVGDocument__rootElement
---
{{ApiRef("DOM")}}{{Deprecated_header}}

Expand All @@ -28,28 +29,4 @@ an {{domxref("SVGSVGElement")}}, identical to the `documentElement`.

## Specifications

<table class="no-markdown">
<thead>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td>
{{SpecName('SVG2','struct.html#__svg__SVGDocument__rootElement','SVGDocument.rootElement')}}
</td>
<td>{{Spec2('SVG2')}}</td>
<td>Deprecated</td>
</tr>
<tr>
<td>
{{SpecName('SVG1.1','struct.html#__svg__SVGDocument__rootElement','SVGDocument.rootElement')}}
</td>
<td>{{Spec2('SVG1.1')}}</td>
<td>Initial definition</td>
</tr>
</tbody>
</table>
{{Specifications}}
30 changes: 4 additions & 26 deletions files/en-us/web/api/domstring/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ tags:
- DOM
- Reference
- String
spec-urls:
- https://webidl.spec.whatwg.org/#idl-DOMString
- https://webidl.spec.whatwg.org/#es-DOMString
---
{{APIRef("DOM")}}

Expand All @@ -17,32 +20,7 @@ Certain Web APIs accepting a `DOMString` have an additional legacy behavior, whe

## Specifications

<table class="no-markdown">
<thead>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td>
{{SpecName('WebIDL', '#idl-DOMString', 'DOMString')}}
</td>
<td>{{Spec2('WebIDL')}}</td>
<td></td>
</tr>
<tr>
<td>{{SpecName('WebIDL', '#es-DOMString')}}</td>
<td>{{Spec2('WebIDL')}}</td>
<td>
This defines how JavaScript values are converted
to <code>DOMString</code> and vice versa.
</td>
</tr>
</tbody>
</table>
{{Specifications}}

## See also

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/ecdhkeyderiveparams/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
- EcdhKeyDeriveParams
- Reference
- Web Crypto API
spec-urls: https://www.w3.org/TR/WebCryptoAPI/#dfn-EcdhKeyDeriveParams
spec-urls: https://w3c.github.io/webcrypto/#dfn-EcdhKeyDeriveParams
---
{{ APIRef("Web Crypto API") }}

Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/ecdsaparams/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
- EcdsaParams
- Reference
- Web Crypto API
spec-urls: https://www.w3.org/TR/WebCryptoAPI/#dfn-EcdsaParams
spec-urls: https://w3c.github.io/webcrypto/#dfn-EcdsaParams
---
{{ APIRef("Web Crypto API") }}

Expand All @@ -16,10 +16,10 @@ The **`EcdsaParams`** dictionary of the [Web Crypto API](/en-US/docs/Web/API/Web
## Properties

- `name`
- : A string. This should be set to `ECDSA`.
- : A {{domxref("DOMString")}}. This should be set to `ECDSA`.
- `hash`

- : A string. An identifier for the [digest algorithm](/en-US/docs/Web/API/SubtleCrypto/digest) to use. This should be one of the following:
- : A {{domxref("DOMString")}}. An identifier for the [digest algorithm](/en-US/docs/Web/API/SubtleCrypto/digest) to use. This should be one of the following:

- `SHA-256`: selects the [SHA-256](/en-US/docs/Web/API/SubtleCrypto/digest#sha-256) algorithm.
- `SHA-384`: selects the [SHA-384](/en-US/docs/Web/API/SubtleCrypto/digest#sha-384) algorithm.
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/eckeygenparams/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
- EcKeyGenParams
- Reference
- Web Crypto API
spec-urls: https://www.w3.org/TR/WebCryptoAPI/#dfn-EcKeyGenParams
spec-urls: https://w3c.github.io/webcrypto/#dfn-EcKeyGenParams
---
{{ APIRef("Web Crypto API") }}

Expand All @@ -16,10 +16,10 @@ The **`EcKeyGenParams`** dictionary of the [Web Crypto API](/en-US/docs/Web/API/
## Properties

- `name`
- : A string. This should be set to `ECDSA` or `ECDH`, depending on the algorithm you want to use.
- : A {{domxref("DOMString")}}. This should be set to `ECDSA` or `ECDH`, depending on the algorithm you want to use.
- `namedCurve`

- : A string representing the name of the elliptic curve to use. This may be any of the following names for [NIST](https://www.nist.gov/)-approved curves:
- : A {{domxref("DOMString")}} representing the name of the elliptic curve to use. This may be any of the following names for [NIST](https://www.nist.gov/)-approved curves:

- `P-256`
- `P-384`
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/eckeyimportparams/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ tags:
- EcKeyImportParams
- Reference
- Web Crypto API
spec-urls: https://www.w3.org/TR/WebCryptoAPI/#dfn-EcKeyImportParams
spec-urls: https://w3c.github.io/webcrypto/#dfn-EcKeyImportParams
---
{{ APIRef("Web Crypto API") }}The **`EcKeyImportParams`** dictionary of the [Web Crypto API](/en-US/docs/Web/API/Web_Crypto_API) represents the object that should be passed as the `algorithm` parameter into {{domxref("SubtleCrypto.importKey()")}} or {{domxref("SubtleCrypto.unwrapKey()")}}, when generating any elliptic-curve-based key pair: that is, when the algorithm is identified as either of [ECDSA](/en-US/docs/Web/API/SubtleCrypto/sign#ecdsa) or [ECDH](/en-US/docs/Web/API/SubtleCrypto/deriveKey#ecdh).

## Properties

- `name`
- : A string. This should be set to `ECDSA` or `ECDH`, depending on the algorithm you want to use.
- : A {{domxref("DOMString")}}. This should be set to `ECDSA` or `ECDH`, depending on the algorithm you want to use.
- `namedCurve`

- : A string representing the name of the elliptic curve to use. This may be any of the following names for [NIST](https://www.nist.gov/)-approved curves:
- : A {{domxref("DOMString")}} representing the name of the elliptic curve to use. This may be any of the following names for [NIST](https://www.nist.gov/)-approved curves:

- `P-256`
- `P-384`
Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/api/element_timing_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- Performance
- Overview
- Reference
spec-urls: https://wicg.github.io/element-timing/
---
{{DefaultAPISidebar("Element Timing")}}

Expand Down Expand Up @@ -47,9 +48,7 @@ observer.observe({ entryTypes: ["element"] });

## Specifications

| Specification | Status | Comment |
| -------------------------------------------- | ---------------------------------------- | ------------------- |
| {{SpecName('Element Timing API')}} | {{Spec2('Element Timing API')}} | Initial definition. |
{{Specifications}}

## Browser compatibility

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/api/encoding_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tags:
- Encoding
- Overview
- Reference
spec-urls: https://encoding.spec.whatwg.org/
---
{{DefaultAPISidebar("Encoding API")}}

Expand All @@ -24,9 +25,7 @@ The API provides four interfaces: {{domxref("TextDecoder")}}, {{domxref("TextEnc

## Specifications

| Specification | Status | Comment |
| -------------------------------- | ---------------------------- | ------------------- |
| {{SpecName("Encoding")}} | {{Spec2("Encoding")}} | Initial definition. |
{{Specifications}}

## Browser compatibility

Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/api/encrypted_media_extensions_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ tags:
- NeedsContent
- Overview
- Reference
spec-urls: https://w3c.github.io/encrypted-media/
---
{{DefaultAPISidebar("Encrypted Media Extensions")}}

Expand All @@ -30,9 +31,7 @@ The Encrypted Media Extensions API provides interfaces for controlling the playb

## Specifications

| Specification | Status | Comment |
| ------------------------ | -------------------- | ------------------ |
| {{SpecName('EME')}} | {{Spec2('EME')}} | Initial definition |
{{Specifications}}

## Browser compatibility

Expand Down
Loading

0 comments on commit 3d62b99

Please sign in to comment.