Skip to content

Commit

Permalink
Add spec URLs for web/api subtree (#13198)
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker authored May 13, 2022
1 parent d432dd5 commit a39becf
Show file tree
Hide file tree
Showing 52 changed files with 129 additions and 429 deletions.
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/#keypair
---
{{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
31 changes: 6 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
browser-compat: api.Document.rootElement
---
{{ApiRef("DOM")}}{{Deprecated_header}}

Expand All @@ -28,28 +29,8 @@ 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}}

## Browser compatibility

{{Compat}}
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
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
5 changes: 2 additions & 3 deletions files/en-us/web/api/epochtimestamp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tags:
- DOM
- Interface
- Reference
spec-urls: https://w3c.github.io/hr-time/#the-epochtimestamp-typedef
---
{{APIRef("DOM")}}

Expand All @@ -15,6 +16,4 @@ This was previously known as {{domxref("DOMTimeStamp")}}.

## Specifications

| Specification | Status | Comment |
| ------------------------------------------------------------------------------------ | ------------------------ | --------------------- |
| {{SpecName("Highres Time Level 3", "#the-epochtimestamp-typedef", "EpochTimeStamp")}} | {{Spec2("Highres Time Level 3")}} | Initial specification |
{{Specifications}}
5 changes: 2 additions & 3 deletions files/en-us/web/api/fetch_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ tags:
- Response
- XMLHttpRequest
- request
spec-urls: https://fetch.spec.whatwg.org/
---
{{DefaultAPISidebar("Fetch API")}}

Expand Down Expand Up @@ -59,9 +60,7 @@ Browsers have started to add experimental support for the {{DOMxRef("AbortContro

## Specifications

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

## Browser compatibility

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ tags:
- NeedsUpdate
- ajax upload
- upload
spec-urls:
- https://html.spec.whatwg.org/multipage/number-state.html#concept-input-type-file-selected
- https://w3c.github.io/FileAPI/
---
{{APIRef("File API")}}

Expand Down Expand Up @@ -525,29 +528,7 @@ URL.revokeObjectURL(obj_url);
## 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('HTML WHATWG', 'number-state.html#concept-input-type-file-selected', 'File upload state')}}
</td>
<td>{{Spec2('HTML WHATWG')}}</td>
<td></td>
</tr>
<tr>
<td>{{SpecName('File API')}}</td>
<td>{{Spec2('File API')}}</td>
<td>Initial definition</td>
</tr>
</tbody>
</table>
{{Specifications}}
## See also
Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/api/file_system_access_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tags:
- Landing
- Overview
- working with files
spec-urls: https://wicg.github.io/file-system-access/
---
{{securecontext_header}}{{DefaultAPISidebar("File System Access API")}}

Expand Down Expand Up @@ -169,9 +170,7 @@ writableStream.write({ type: "truncate", size: size })

## Specifications

| Specification | Status | Comment |
| ---------------------------------------------------- | ------------------------------------------------ | ------------------- |
| {{SpecName('File System Access API')}} | {{Spec2('File System Access API')}} | Initial definition. |
{{Specifications}}

## Browser compatibility

Expand Down
Loading

0 comments on commit a39becf

Please sign in to comment.