<data> element stripped by $adminTags

Created on 15 March 2023, over 1 year ago
Updated 12 August 2024, 3 months ago

Problem/Motivation

When trying to get Views to output field wrapped in a <data> element it gets removed.

Steps to reproduce

  1. Create an element in Views using a <data> element (see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data)
  2. Wrapping element is removed

Proposed resolution

Add the "data" element to the Xss::$adminTags list.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

๐Ÿ› Bug report
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Otherย  โ†’

Last updated about 1 hour ago

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada minoroffense Ottawa, Canada

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024