Tags td, tr or th ignored by new parseHTML implementation

Created on 5 February 2025, 5 months ago

Problem/Motivation

I have used such command
$ajax_response->addCommand(new ReplaceCommand($selector, '<td>Hello!</td>'));

but in result i see only - "Hello!", without tags

Steps to reproduce

Proposed resolution

from https://stackoverflow.com/a/43112816

var template = document.createElement( 'template' )
template.innerHTML = '<td></td>'
var frag = template.content
console.log( frag.childNodes )   // output => [td]

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Active

Version

10.4 โœจ

Component

ajax system

Created by

๐Ÿ‡ง๐Ÿ‡พBelarus alexdoma

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024