A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/w3c/trusted-types/issues/512 below:

Should SVGScriptElement have an IDL way to set a trusted script value? · Issue #512 · w3c/trusted-types · GitHub

Currently I don't believe there's any sanctioned way to update the contents of an SVG script element (assuming #483 is done so the protection covers them too).

The spec says that we recommend authors use script.textContent, script.innerText or script.text for updating the contents of a script element with a trusted object. Should the same not also hold true for an SVG script element?

As far as I can see this isn't just a spec issue it's also missing from Chrome's implementation.

It would seem to make sense to shadow Node.textContent to the SVGScriptElement type?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4