Open lukewarlow opened 2 weeks ago
I've rebased this atop the parser PR so I can account for everything SVG in one PR.
Wouldn't it be better to handle HTML and SVG script at the same time?
Wouldn't it be better to handle HTML and SVG script at the same time?
Perhaps but they're pretty distinct from each other spec wise. This PR adds the "script text" and parser handling to svg script element that HTML script has. The only bit this PR is missing is actually doing the enforcement. I'm not sure how best to go about that due to the fact that SVG doesn't have a "prepare the script" method definition.
Addresses #483
Preview | Diff