Code Monkey home page Code Monkey logo

Comments (3)

koto avatar koto commented on August 25, 2024 1

Yes, we thinking about that. What you described can be implemented in a default policy with some additional context when called (element, attr name).

FWIW, for now the shape of the default policy is the most controversial and volatile part of the specification, and we're purposefully not advertising it yet. The problem here is that it indeed facilitates migration of existing code but at the same time has a tendency to grow into an unreviewable mess (it has to accept everything that your dependencies can potentially set), and introduces subtle bugs into your code - it's like changing the prototype of base JS objects, an antipattern (but with security benefits). We're think on a way to make it less-global and more-local to the code.

from trusted-types.

koto avatar koto commented on August 25, 2024 1

#191 introduces sink parameter to a few algorithms. Currently it's an empty string, but we'll likely add it as an attribute to TrustedTypes extended attribute (which annotates the sinks).

from trusted-types.

koto avatar koto commented on August 25, 2024

I renamed the issue, as this is what is missing from the current design - and adding that would fullfill your requirements. Thanks!

from trusted-types.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.