From e8ff92bf7786916178f3a170d83a13d2a3e36196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Mon, 28 Oct 2024 16:34:44 +0100 Subject: [PATCH] Clarify that expectedType is set to the interface's name of TrustedType values (#556) Closes https://github.com/w3c/trusted-types/issues/552 --- spec/index.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/index.bs b/spec/index.bs index 08264d9..3d453f0 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -678,7 +678,7 @@ Its value is initially « ». 1. Let |interface| be the [=element interface=] for |localName| and |elementNs|. 1. Let |expectedType| be null. 1. Find the row in the following table, where the first column is "*" or |interface|'s name, and |property| is in the second column. - If a matching row is found, set |expectedType| to the value of the third column. + If a matching row is found, set |expectedType| to the interface's name of the value of the third column. @@ -720,7 +720,7 @@ Its value is initially « ». * |interface| as |element| * |attribute| * |attrNs| - 1. If |attributeData| is not null, then set |expectedType| to the value of the fourth member of |attributeData|. + 1. If |attributeData| is not null, then set |expectedType| to the interface's name of the value of the fourth member of |attributeData|. 1. Return |expectedType|.