Skip to content

Commit

Permalink
Handle null policyValue in Create a Trusted Type (w3c#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarlow authored Jun 19, 2024
1 parent f5b1630 commit cf78f7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,7 @@ a string |value| and a list |arguments|, execute the following steps:
1. Let |policyValue| be the result of executing [$Get Trusted Type policy value$] with the same arguments as this algorithm and additionally true as |throwIfMissing|.
1. If the algorithm threw an error, rethrow the error and abort the following steps.
1. Let |dataString| be the result of stringifying |policyValue|.
1. If |policyValue| is null or undefined, set |dataString| to the empty string.
1. Return a new instance of an interface with a type
name |trustedTypeName|, with its associated data value set to |dataString|.

Expand Down

0 comments on commit cf78f7e

Please sign in to comment.