Skip to content

Navigation Menu

Sign in
Sign up

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

Open
Assignees
Labels

Description

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

Labels

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    AltStyle によって変換されたページ (->オリジナル) /