From c6007f0f12d9b1feb5c65e6d4c84e25f573f9ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Wed, 23 Oct 2024 10:39:28 +0200 Subject: [PATCH] Clarify that expectedType is set to the interface's name of TrustedType values 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 e019ed0..50cb436 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -680,7 +680,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. @@ -722,7 +722,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|.