Comments (5)
Because parseFromString
itself doesn't return a Trusted Type. It returns a DOM node.
Could you describe your use case with more details?
from tsec.
Because
parseFromString
itself doesn't return a Trusted Type. It returns a DOM node.
Well, I'm talking about difference in behavior.
Why is assigning TrustedHTML
to innerHTML
doesn't require ban-element-innerhtml-assignments
exemption but it does require ban-domparser-parsefromstring
exemption on parseFromString
?
from tsec.
Because we believe such cases are extremely rare, and analysis regarding function properties is less precise in general. If you have a strong use case for parseFromString
to consume a Trusted Types value, we can consider supporting it.
from tsec.
We are just parsing XML file uploaded by user.
But in that case, can you at least document which sinks won't require exemption when used with Trusted Types? Maybe add a column of Skips exemption with Trusted Types
with Boolean value here?
from tsec.
Yes, I will update the doc.
from tsec.
Related Issues (13)
- Guidance on usage with trusted types HOT 2
- Suppress by error code HOT 1
- Publish tsec on npmjs.com HOT 4
- Casting tricks don't work HOT 4
- No support for project references? HOT 1
- Don't run tsc as a post install step HOT 4
- Exemptions not working? HOT 2
- Invalid warning on Worker assignment HOT 3
- Bazel Integration: support runfile resolution
- Support Trusted Types from DOM lib HOT 22
- Add option for ignoring TS errors HOT 6
- [ban-worker-calls] Is there any best practice for such error ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsec.