From c69e08cf2576c1d7981b6c7e4f2ccde334806ea2 Mon Sep 17 00:00:00 2001 From: Maks Orlovich Date: Thu, 16 May 2024 09:19:35 -0400 Subject: [PATCH] Spec: fix missing queryFeatureSupport values, and refactor it (#1173) * Spec: implement queryFeatureSupport('*') ...and a couple of other inputs that seem to be missing from the spec when their matching features seem to be in. * Drop queryFeatureSupport('*') code for now. * Add missing plurals --------- Co-authored-by: Maks Orlovich --- spec.bs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/spec.bs b/spec.bs index d36b09091..f97ada0cb 100644 --- a/spec.bs +++ b/spec.bs @@ -4322,8 +4322,16 @@ interface ProtectedAudience {
The queryFeatureSupport(feature) method steps are: -1. If feature is "adComponentsLimit", return 40. -2. Return `undefined`. +1. Let |featuresTable| be an [=ordered map=] whose keys are {{DOMString}}s and whose values are + {{boolean}}s or {{long}}s, with the following entries: + : "adComponentsLimit" + :: 40 + : "deprecatedRenderURLReplacements" + :: true + : "reportingTimeout" + :: true +1. If |featuresTable|[|feature|] [=map/exists=], then return |featuresTable|[|feature|]. +1. Return `undefined`.