Skip to content

Instantly share code, notes, and snippets.

@shhnjk
shhnjk / digesting-the-concept-of-trusted-types.md
Created December 2, 2021 19:24
How I interpreted the concept of Trusted Types

Digesting the Concept of Trusted Types

This document describes how I interpreted the concept of Trusted Types, and why I think it's important. This is not the universal truth and is subject to change (because the API will likely extend in the future).

Trusted Types enforce developers to define a type for a string, when the string assigment to a sink will result in type conversion (by the browser).

Insecure Defaults