Problem/Motivation

Xss::filter() allows any attribute except a hardcoded list of dangerous attributes (style, on*, etc.). It is currently not possible to alter this list.

Modules could have other attributes that are dangerous when the module is installed.
A typical example would be a module that loads a JS library that uses some custom attributes, some of which are too powerful and should be used by non-admin users.

Steps to reproduce

Proposed resolution

Add a hook that allows adding attributes to the list.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3617739

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

prudloff created an issue. See original summary.

chaitanyadessai made their first commit to this issue’s fork.

chaitanyadessai’s picture

Status: Active » Needs review

Please review MR.