From f267f671bb9708d42f722b24a3b4d2586966ae89 Mon Sep 17 00:00:00 2001 From: Daniel Vogelheim Date: Wed, 11 Dec 2024 17:00:00 +0100 Subject: [PATCH] Fix usage of Let/Set. --- index.bs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.bs b/index.bs index 9bc99a7..e758d55 100644 --- a/index.bs +++ b/index.bs @@ -385,12 +385,12 @@ Note: This algorithm works for both {{SetHTMLOptions}} and 1. Let |sanitizerSpec| be "{{SanitizerPresets/default}}". 1. If |options|["{{SetHTMLOptions/sanitizer}}"] [=map/exists=], then: - 1. Let |sanitizerSpec| be |options|["{{SetHTMLOptions/sanitizer}}"] + 1. Set |sanitizerSpec| to |options|["{{SetHTMLOptions/sanitizer}}"] 1. [=Assert=]: |sanitizerSpec| is either a {{Sanitizer}} instance, a [=string=] which is a {{SanitizerPresets}} member, or a [=dictionary=]. 1. If |sanitizerSpec| is a [=string=]: 1. [=Assert=]: |sanitizerSpec| [=is=] "{{SanitizerPresets/default}}" - 1. Let |sanitizerSpec| be the [=built-in safe default configuration=]. + 1. Set |sanitizerSpec| to the [=built-in safe default configuration=]. 1. [=Assert=]: |sanitizerSpec| is either a {{Sanitizer}} instance, or a [=dictionary=]. 1. If |sanitizerSpec| is a [=dictionary=]: @@ -398,7 +398,7 @@ Note: This algorithm works for both {{SetHTMLOptions}} and 1. Let |setConfigurationResult| be the result of [=set a configuration=] with |sanitizerSpec| on |sanitizer|. 1. If |setConfigurationResult| is false, [=throw=] a {{TypeError}}. - 1. Let |sanitizerSpec| be |sanitizer|. + 1. Set |sanitizerSpec| to |sanitizer|. 1. [=Assert=]: |sanitizerSpec| is a {{Sanitizer}} instance. 1. Return |sanitizerSpec|.