Hacker News new | ask | show | jobs
by throwaway14356 1050 days ago
meanwhile Im like...

   <button onclick="innerHTML++">1</button>
2 comments

GP comment shows a simple example, sure. And obviously it’s overkill just to implement incrementing a displayed value. But trivializing the example doesn’t reduce the “framework” to being pointless.
Meanwhile I’m like… That’s a Content Security Policy violation.
2 men are having lunch, one complaints that he always has cheese on his sandwiches. The other says, just ask your wife for something else? He responds: I always make it myself.

Content-Security-Policy: script-src 'self'; script-src-attr 'unsafe-hashes' 'sha256-9lIp1merGZMC6sfoM+OcgpSSRJJr18teLzyFangr0FY='