From 8596935dc743202773cdcb3587ed6110d0bcdc42 Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Fri, 25 Feb 2022 11:22:59 +0900 Subject: [PATCH] Add spec URLs for all remaining subtrees Part of https://github.com/mdn/content/issues/13126 --- .../events/detecting_device_orientation/index.md | 5 ++--- files/en-us/web/events/index.md | 6 ++---- .../index.md | 8 ++++---- .../web/guide/css/block_formatting_context/index.md | 6 ++---- files/en-us/web/guide/woff/index.md | 8 ++++---- files/en-us/web/html/global_attributes/index.md | 3 +-- files/en-us/web/performance/lazy_loading/index.md | 5 ++--- files/en-us/web/security/secure_contexts/index.md | 5 ++--- .../web/security/subresource_integrity/index.md | 6 ++---- files/en-us/web/xpath/axes/child/index.md | 13 ++----------- files/en-us/web/xpath/axes/self/index.md | 8 ++------ files/en-us/web/xslt/element/stylesheet/index.md | 7 ++----- files/en-us/webassembly/index.md | 5 ++--- 13 files changed, 29 insertions(+), 56 deletions(-) diff --git a/files/en-us/web/events/detecting_device_orientation/index.md b/files/en-us/web/events/detecting_device_orientation/index.md index 46abd67d23cadf1..2099943d446e8e4 100644 --- a/files/en-us/web/events/detecting_device_orientation/index.md +++ b/files/en-us/web/events/detecting_device_orientation/index.md @@ -9,6 +9,7 @@ tags: - Motion - Orientation - Reference +spec-urls: https://w3c.github.io/deviceorientation/ --- {{SeeCompatTable}} @@ -171,9 +172,7 @@ Finally, {{domxref("DeviceMotionEvent.interval","interval")}} represents the int ## Specifications -| Specification | Status | Comment | -| -------------------------------------------- | ---------------------------------------- | ---------------------- | -| {{SpecName('Device Orientation')}} | {{Spec2('Device Orientation')}} | Initial specification. | +{{Specifications}} ## Browser compatibility diff --git a/files/en-us/web/events/index.md b/files/en-us/web/events/index.md index 748b914bb406659..5be0e88fcbdc1ea 100644 --- a/files/en-us/web/events/index.md +++ b/files/en-us/web/events/index.md @@ -5,6 +5,7 @@ tags: - Event - Overview - Reference +spec-urls: https://html.spec.whatwg.org/multipage/indices.html#events-2 --- [Events](/en-US/docs/Learn/JavaScript/Building_blocks/Events) are fired to notify code of "interesting changes" that may affect code execution. These can arise from user interactions such as using a mouse or resizing a window, changes in the state of the underlying environment (e.g. low battery or media events from the operating system), and other causes. @@ -1407,9 +1408,6 @@ This section lists events that have _their own_ reference pages on MDN. If you a ## Specifications -| Specification | Status | Comment | -| ------------------------------------------------------------------------------------------------------------------------ | -------------------------------- | ------- | -| {{SpecName('HTML WHATWG', 'webappapis.html#event-handler-attributes', 'event handlers')}} | {{Spec2('HTML WHATWG')}} | | -| {{SpecName('HTML5 W3C', 'webappapis.html#event-handler-attributes', 'event handlers')}} | {{Spec2('HTML5 W3C')}} | | +{{Specifications}} diff --git a/files/en-us/web/guide/api/webrtc/peer-to-peer_communications_with_webrtc/index.md b/files/en-us/web/guide/api/webrtc/peer-to-peer_communications_with_webrtc/index.md index df9f5b45f3d47df..215c79a5a6aefd9 100644 --- a/files/en-us/web/guide/api/webrtc/peer-to-peer_communications_with_webrtc/index.md +++ b/files/en-us/web/guide/api/webrtc/peer-to-peer_communications_with_webrtc/index.md @@ -11,6 +11,9 @@ tags: - RTCPeerConnection - WebRTC - WebRTC API +spec-urls: + - https://w3c.github.io/mediacapture-main/ + - https://w3c.github.io/webrtc-pc/ --- {{WebRTCSidebar}} @@ -28,7 +31,4 @@ A high-level description of what happens in an `RTCPeerConnection` was shown in ## Specifications -| Specification | Status | Comment | -| ---------------------------------------- | ------------------------------------ | ------------------------------------ | -| {{SpecName("Media Capture")}} | {{Spec2("Media Capture")}} | Definition of the `getUserMedia` API | -| {{SpecName("WebRTC 1.0")}} | {{Spec2("WebRTC 1.0")}} | Initial definition | +{{Specifications}} diff --git a/files/en-us/web/guide/css/block_formatting_context/index.md b/files/en-us/web/guide/css/block_formatting_context/index.md index 65ad7eb9078e3b8..e04055a7246794a 100644 --- a/files/en-us/web/guide/css/block_formatting_context/index.md +++ b/files/en-us/web/guide/css/block_formatting_context/index.md @@ -8,6 +8,7 @@ tags: - NeedsExample - Reference - Web +spec-urls: https://drafts.csswg.org/css-display/#block-formatting-context --- {{ CSSRef }} @@ -196,10 +197,7 @@ Creating a new BFC to avoid the [margin collapsing](/en-US/docs/Web/CSS/CSS_Box_ ## Specifications -| Specification | Status | Comment | -| ---------------------------------------------------------------------------------------------------------------- | -------------------------------- | --------------------- | -| {{SpecName('CSS3 Display', '#block-formatting-context', 'Block Formatting Context')}} | {{Spec2('CSS3 Display')}} | define BFC(abbr) etc. | -| {{SpecName('CSS2.1', 'visuren.html#block-formatting', 'Block Formatting Context')}} | {{Spec2('CSS2.1')}} | Initial definition. | +{{Specifications}} ## See also diff --git a/files/en-us/web/guide/woff/index.md b/files/en-us/web/guide/woff/index.md index dbe1f07ade3fa4a..5aaaf40f03399fc 100644 --- a/files/en-us/web/guide/woff/index.md +++ b/files/en-us/web/guide/woff/index.md @@ -6,6 +6,9 @@ tags: - NeedsMobileBrowserCompatibility - WOFF - WOFF2 +spec-urls: + - https://www.w3.org/TR/WOFF/ + - https://w3c.github.io/woff/woff2/ --- **WOFF** (the **Web Open Font Format**) is a web font format developed by Mozilla in concert with Type Supply, LettError, and other organizations. It uses a compressed version of the same table-based `sfnt` structure used by TrueType, OpenType, and Open Font Format, but adds metadata and private-use data structures, including predefined fields allowing foundries and vendors to provide license information if desired. @@ -27,10 +30,7 @@ You can use the {{cssxref("@font-face")}} CSS property to use WOFF fonts for tex ## Specifications -| Specification | Status | Comment | -| ---------------------------------------- | ---------------------------- | ------------------------- | -| {{SpecName('WOFF2.0', '', '')}} | {{Spec2('WOFF2.0')}} | New compression algorithm | -| {{SpecName('WOFF1.0', '', '')}} | {{Spec2('WOFF1.0')}} | Initial specification. | +{{Specifications}} ## Browser compatibility diff --git a/files/en-us/web/html/global_attributes/index.md b/files/en-us/web/html/global_attributes/index.md index b693dd71c7fb717..a6237633c6406b4 100644 --- a/files/en-us/web/html/global_attributes/index.md +++ b/files/en-us/web/html/global_attributes/index.md @@ -6,7 +6,6 @@ tags: - HTML - Reference - Web -browser-compat: html.global_attributes spec-urls: https://html.spec.whatwg.org/multipage/dom.html#global-attributes --- @@ -130,7 +129,7 @@ In addition to the basic HTML global attributes, the following global attributes ## Browser compatibility -{{Compat}} +{{Compat("html.global_attributes")}} ## See also diff --git a/files/en-us/web/performance/lazy_loading/index.md b/files/en-us/web/performance/lazy_loading/index.md index 6933e1dde39f0b7..0588f904a42fd14 100644 --- a/files/en-us/web/performance/lazy_loading/index.md +++ b/files/en-us/web/performance/lazy_loading/index.md @@ -11,6 +11,7 @@ tags: - Performance - Web Performance - rendering +spec-urls: https://html.spec.whatwg.org/multipage/#lazy-loading-attributes --- **Lazy loading** is a strategy to identify resources as non-blocking (non-critical) and load these only when needed. It's a way to shorten the length of the [critical rendering path](/en-US/docs/Web/Performance/Critical_rendering_path), which translates into reduced page load times. @@ -92,9 +93,7 @@ When browser compatibility is crucial, there are a few options: ## Specifications -| **Specification** | **Status** | **Comment** | -| ------------------------------------------------------------------------ | -------------------------------- | ----------- | -| {{SpecName('HTML WHATWG', "#lazy-loading-attributes")}} | {{Spec2('HTML WHATWG')}} | | +{{Specifications}} ## See also diff --git a/files/en-us/web/security/secure_contexts/index.md b/files/en-us/web/security/secure_contexts/index.md index 1aba82a0bff6e8e..a91e1791bd0edf9 100644 --- a/files/en-us/web/security/secure_contexts/index.md +++ b/files/en-us/web/security/secure_contexts/index.md @@ -4,6 +4,7 @@ slug: Web/Security/Secure_Contexts tags: - Secure contexts - Security +spec-urls: https://w3c.github.io/webappsec-secure-contexts/ --- A **secure context** is a `Window` or `Worker` for which certain minimum standards of authentication and confidentiality are met. Many Web APIs and features are accessible only in a secure context. The primary goal of secure contexts is to prevent {{interwiki("wikipedia", "man-in-the-middle attack", "MITM attackers")}} from accessing powerful APIs that could further compromise the victim of an attack. @@ -47,9 +48,7 @@ if (window.isSecureContext) { ## Specifications -| Specification | Status | Comment | -| ---------------------------------------- | ------------------------------------ | -------------- | -| {{SpecName('Secure Contexts')}} | {{Spec2('Secure Contexts')}} | Editor's Draft | +{{Specifications}} ## See also diff --git a/files/en-us/web/security/subresource_integrity/index.md b/files/en-us/web/security/subresource_integrity/index.md index 769ba5229ab68b4..05c563796bf053f 100644 --- a/files/en-us/web/security/subresource_integrity/index.md +++ b/files/en-us/web/security/subresource_integrity/index.md @@ -7,6 +7,7 @@ tags: - Intro - Networking - Security +spec-urls: https://w3c.github.io/webappsec-subresource-integrity/ --- **Subresource Integrity** (SRI) is a security feature that enables browsers to verify that resources they fetch (for example, from a [CDN](/en-US/docs/Glossary/CDN)) are delivered without unexpected manipulation. It works by allowing you to provide a cryptographic hash that a fetched resource must match. @@ -112,10 +113,7 @@ Browsers handle SRI by doing the following: ## Specifications -| Specification | Status | Comment | -| ------------------------------------------------ | -------------------------------------------- | ------- | -| {{SpecName('Subresource Integrity')}} | {{Spec2('Subresource Integrity')}} | | -| {{SpecName('Fetch')}} | {{Spec2('Fetch')}} | | +{{Specifications}} ## Browser compatibility diff --git a/files/en-us/web/xpath/axes/child/index.md b/files/en-us/web/xpath/axes/child/index.md index e97a04ce79fac85..7cde026a2468aca 100644 --- a/files/en-us/web/xpath/axes/child/index.md +++ b/files/en-us/web/xpath/axes/child/index.md @@ -4,21 +4,12 @@ slug: Web/XPath/Axes/child tags: - Axe - XPath -browser-compat: xpath.axes.child +spec-urls: https://www.w3.org/TR/xpath-31/#axes --- The `child` axis indicates the children of the context node. If an XPath expression does not specify an axis, the `child` axis is understood by default. Since only the root node or element nodes have children, any other use will select nothing. ## Specifications -| Specification | Status | Comment | -| ---------------------------------------------------- | ---------------------------- | ------------------- | -| {{SpecName("XPath3.1","#axes","child")}} | {{Spec2("XPath3.1")}} | | -| {{SpecName("XPath3","#axes","child")}} | {{Spec2("XPath3")}} | | -| {{SpecName("XPath2","#axes","child")}} | {{Spec2("XPath2")}} | | -| {{SpecName("XPath1","#axes","child")}} | {{Spec2("XPath1")}} | Initial definition. | - -## Browser compatibility - -{{Compat}} +{{Specifications}} {{QuickLinksWithSubpages("/en-US/docs/Web/XPath")}} diff --git a/files/en-us/web/xpath/axes/self/index.md b/files/en-us/web/xpath/axes/self/index.md index 1b6d8a838fb12e9..86a99dc7e0a7fbf 100644 --- a/files/en-us/web/xpath/axes/self/index.md +++ b/files/en-us/web/xpath/axes/self/index.md @@ -4,16 +4,12 @@ slug: Web/XPath/Axes/self tags: - Axe - XPath +spec-urls: https://www.w3.org/TR/xpath-31/#axes --- The `self` axis indicates the context node itself. It can be abbreviated as a single period (`.`). ## Specifications -| Specification | Status | Comment | -| ---------------------------------------------------- | ---------------------------- | ------------------- | -| {{SpecName("XPath3.1","#axes","self")}} | {{Spec2("XPath3.1")}} | | -| {{SpecName("XPath3","#axes","self")}} | {{Spec2("XPath3")}} | | -| {{SpecName("XPath2","#axes","self")}} | {{Spec2("XPath2")}} | | -| {{SpecName("XPath1","#axes","self")}} | {{Spec2("XPath1")}} | Initial definition. | +{{Specifications}} {{QuickLinksWithSubpages("/en-US/docs/Web/XPath")}} diff --git a/files/en-us/web/xslt/element/stylesheet/index.md b/files/en-us/web/xslt/element/stylesheet/index.md index 197b0d6beb6900a..31fae21eb448823 100644 --- a/files/en-us/web/xslt/element/stylesheet/index.md +++ b/files/en-us/web/xslt/element/stylesheet/index.md @@ -6,6 +6,7 @@ tags: - Reference - StyleSheet - XSLT +spec-urls: https://www.w3.org/TR/xslt-30/#stylesheet-element --- {{XSLTRef}}{{QuickLinksWithSubpages("/en-US/docs/Web/XSLT")}} @@ -62,8 +63,4 @@ Required outermost element of stylesheet. ## Specifications -| Specification | Status | Comment | -| ------------------------------------------------------------------------------------------------ | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| {{SpecName("XSLT 3.0", "#stylesheet-element", "<xsl:stylesheet>")}} | {{Spec2("XSLT 3.0")}} | Added the attributes `default-mode`, `expand-text`, and `use-when`. | -| [XSLT 2.0](https://www.w3.org/TR/xslt20/#stylesheet-element) | | Added the attributes `xpath-default-namespace`, `default-validation`, `default-collation`, and `input-type-annotations` and made all attributes except `version` optional. | -| [XSLT 1.0](https://www.w3.org/TR/xslt-10/#stylesheet-element) | | Initial definition | +{{Specifications}} diff --git a/files/en-us/webassembly/index.md b/files/en-us/webassembly/index.md index aeafd4b9ca27a77..96ede9a01d5ebd2 100644 --- a/files/en-us/webassembly/index.md +++ b/files/en-us/webassembly/index.md @@ -5,6 +5,7 @@ tags: - Landing - WebAssembly - wasm +spec-urls: https://webassembly.github.io/spec/js-api/ --- {{WebAssemblySidebar}} @@ -71,9 +72,7 @@ And what's even better is that it is being developed as a web standard via the [ ## Specifications -| Specification | Status | Comment | -| ---------------------------------------- | ------------------------------------ | ----------------------------------------------- | -| {{SpecName('WebAssembly JS')}} | {{Spec2('WebAssembly JS')}} | Initial draft definition of the JavaScript API. | +{{Specifications}} ## Browser compatibility