As part of the implementation of this spec in https://github.com/LadybirdBrowser/ladybird I found a potential error
The TrustedTypePolicyFactory class has an initially null value of default policy
2.3.4. Default policy defines some behavior on what to do if a default policy is not present but like the section says this section is not normative.
The problem arises in 3.5. Process value with a default policy in step 1 where it is assumed a default policy exists.
I see 2 courses here:
- We either make section 2.3.4 normative
- We take into account that
default policy could be null in Process value with a default policy