diff --git a/spec/index.bs b/spec/index.bs index 348e5766e6..52c74fa1cd 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -1486,21 +1486,21 @@ interface GPUAdapterInfo { 1. Let |unmaskedValues| be |adapter|.{{adapter/[[unmaskedIdentifiers]]}} 1. If |unmaskedValues| [=set/contains=] `"vendor"` and the vendor is known: 1. Set |adapterInfo|.{{GPUAdapterInfo/vendor}} to the name of |adapter|'s vendor as a - [$normalized identifier string$]. + [=normalized identifier string=]. Otherwise: 1. Set |adapterInfo|.{{GPUAdapterInfo/vendor}} to the empty string or a - reasonable approximation of the vendor as a [$normalized identifier string$]. + reasonable approximation of the vendor as a [=normalized identifier string=]. 1. If |unmaskedValues| [=set/contains=] `"architecture"` and the architecture is known: - 1. Set |adapterInfo|.{{GPUAdapterInfo/architecture}} to a [$normalized identifier string$] + 1. Set |adapterInfo|.{{GPUAdapterInfo/architecture}} to a [=normalized identifier string=] representing the family or class of adapters to which |adapter| belongs. Otherwise: 1. Set |adapterInfo|.{{GPUAdapterInfo/architecture}} to the empty string or a - reasonable approximation of the architecture as a [$normalized identifier string$]. + reasonable approximation of the architecture as a [=normalized identifier string=]. 1. If |unmaskedValues| [=set/contains=] `"deviceId"` and the deviceId is known: 1. Set |adapterInfo|.{{GPUAdapterInfo/deviceId}} to a vendor-specific numeric ID for @@ -1524,14 +1524,22 @@ interface GPUAdapterInfo {
- To generate a normalized identifier string for a given {{DOMString}} - |identifier|, run the following steps: - - 1. Let |normalized| be a copy of |identifier|. - 1. Remove any non-ASCII characters from |normalized|. - 1. Convert |normalized| to lowercase. - 1. Replace any spaces in |normalized| with a hyphen character. (`"-"`) - 1. Return |normalized|. + A normalized identifier string is one that follows the following pattern: + +
+    OneOrMore:
+        OneOrMore:
+            T: a-z 0-9
+        T: -
+    
+ +
+ Examples of valid normalized identifier strings include: + - `gpu` + - `3d` + - `next-gen` + - `series-x20-ultra` +
## Origin Restrictions ## {#origin-restrictions}