Skip to content

Improve 'prevent-innerHTML' — support 'setHTMLUnsafe' and 'setHTML' methods #548

Description

@piquark6046

The prevent-innerHTML scriptlet currently only covers innerHTML setter.

It should also cover the newer Element.setHTMLUnsafe() and Element.setHTML() methods, which can be used as alternatives to innerHTML.

References:
https://developer.mozilla.org/en-US/docs/Web/API/Element/setHTMLUnsafe
https://developer.mozilla.org/en-US/docs/Web/API/Element/setHTML

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions