Closed StoneCypher closed 5 years ago
Both canvas and svg are part of the web platform, and not part of the language. This seems like it might be better as a web proposal instead of a language proposal?
fair point
i don't know where those go, though
It's possible today with significant hoop jumping, but it breaks every nine months or so when a detail about security stuff or cors or tainting or whatever changes. The maintenance burden is untenable and unnecessary.
A desirable fix would be a simple
[Object SVG].toCanvas({ width, ... })
. If you're worried about security (I haven't figured out any security problems yet but who knows,) then require a DOM attribute calledscreenshottable
or whatever to be set on it. Opt-in all the things.