From 40eb301b4b51c34dff256e6481a85091dbea4a2f Mon Sep 17 00:00:00 2001 From: Mirko Brodesser Date: Thu, 7 Mar 2024 14:40:07 +0100 Subject: [PATCH] Use nullish coalescing operator --- .../block-string-assignment-to-Element-setAttributeNS.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trusted-types/block-string-assignment-to-Element-setAttributeNS.html b/trusted-types/block-string-assignment-to-Element-setAttributeNS.html index 2eb5506cc827d5..b7f74be6b7dd22 100644 --- a/trusted-types/block-string-assignment-to-Element-setAttributeNS.html +++ b/trusted-types/block-string-assignment-to-Element-setAttributeNS.html @@ -73,8 +73,7 @@ ]; for (const testData of nonLowerCaseTests) { - const attributeNamespace = ("attributeNamespace" in testData) ? - testData.attributeNamespace : null; + const attributeNamespace = testData.attributeNamespace ?? null; test(t => { assert_element_accepts_non_trusted_type_set_ns(testData.element, testData.attribute, "v",