HTML inside the "Vertical Tabs" "Tab" label is being removed and escaped

Created on 31 May 2023, over 1 year ago

Problem/Motivation

This is a follow-up issue to Add option to allow HTML in labels Fixed .

HTML inside the "Vertical Tabs" "Tab" label is being removed and escaped. The issue behind is an upstream core issue, which needs to get resolved:

The core "vertical-tabs.js" uses "textContent" to render the tab labels instead of "innerHTML".

Element.innerHTML returns HTML, as its name indicates. Sometimes people use innerHTML to retrieve or write text inside an element, but textContent has better performance because its value is not parsed as HTML.

See https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent?retire...

Additionally, the HTML gets escaped somewhere else (but that should be resolved in the core issue).

Steps to reproduce

Proposed resolution

Fix the upstream core issue.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Postponed

Version

3.0

Component

Miscellaneous

Created by

🇩🇪Germany Grevil

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024