From 41e4cb866502794d67740a8f231932fdd7f1e2cc Mon Sep 17 00:00:00 2001 From: Francois Daoust Date: Mon, 30 Mar 2026 11:28:37 +0200 Subject: [PATCH] Fix WebIDL definitions Bikeshed needs WebIDL blocks to be wrapped in `
` to enable
automatic dfns and linking of the terms it contains:
https://speced.github.io/bikeshed/#idl

Also, references to IDL terms need to use the `{{foo}}` shorthand, see:
https://speced.github.io/bikeshed/#autolink-wrappers
---
 index.bs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/index.bs b/index.bs
index 3908a80..7ff2f2e 100644
--- a/index.bs
+++ b/index.bs
@@ -102,7 +102,7 @@ The [:Sec-CH-Device-Memory:]'s value should be set to the [=user agent=]'s [=dev
 
 # Device Memory JavaScript API # {#device-memory-js-api}
 
-```idl
+
 [
     SecureContext,
     Exposed=(Window,Worker)
@@ -112,9 +112,9 @@ The [:Sec-CH-Device-Memory:]'s value should be set to the [=user agent=]'s [=dev
 
 Navigator includes NavigatorDeviceMemory;
 WorkerNavigator includes NavigatorDeviceMemory;
-```
+
-The [=NavigatorDeviceMemory=]'s [=NavigatorDeviceMemory/deviceMemory=] getter steps are to return the [=user agent=]'s [=deviceMemory=]. +The {{NavigatorDeviceMemory}}'s {{NavigatorDeviceMemory/deviceMemory}} getter steps are to return the [=user agent=]'s [=deviceMemory=]. ## JavaScript examples ## {#javascript-examples}