DOMNode warnings when using more complex html like unordered lists in the footnote reference text

Created on 6 February 2024, 11 months ago
Updated 29 February 2024, 10 months ago

Problem/Motivation

If you add eg unordered list to the footnotes text format and use that in the reference text, you can get a filter error similar to
Message Warning: DOMNode::appendChild(): Document Fragment is empty in Drupal\footnotes\Plugin\Filter\FootnotesFilter->process() (line 164 of ~/footnotes/src/Plugin/Filter/FootnotesFilter.php)

Steps to reproduce

Edit the footnotes text format
Add unordered list
Edit the basic html text format to add footnotes and footnotes filter
Create a node with a footnote reference that contains an unordered list

Proposed resolution

Review issue

Remaining tasks

Solve the issue

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

4.0

Component

Footnotes

Created by

🇬🇧United Kingdom scott_euser

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