knockout / knockout

Knockout makes it easier to create rich, responsive UIs with JavaScript
http://knockoutjs.com/
Other
10.43k stars 1.52k forks source link

Trusted Type Knockout #2580

Open shhnjk opened 2 years ago

shhnjk commented 2 years ago

This change adds Trusted Types support to Knockout.

All the changes are behind typeof trustedTypes !== 'undefined', so this change should only affect Chromium users (where Trusted Types is supported). Unless developers who uses Knockout wants to enforce Trusted Types, this change won't affect anyone.

Note that this only prevents DOM-based XSS, so stored and reflected XSS are still possible.

Fixes #2579.