Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 23 months ago

#55371 closed defect (bug) (reported-upstream)

HTML code in page title causes error in Dashboard

Reported by: ecparkin's profile ecparkin Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.9.2
Component: Editor Keywords:
Focuses: Cc:

Description

Whenever I try to edit a few of my pages that have some HTML code as part of their title - in order to have an image/logo to appear with the title and change the color of one word of the title - I get the error message attached.

When I remove the HTML code with a img src= from the title, the page can be edited as usual again.

Any other pages where I did not place some code as part of the title work as expected.

This error only started happening in the last two weeks or so, possibly related to the recent WordPress update?

When I click on "Copy Error" - here is the output:

TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.

at se (https://c0.wp.com/c/5.9.1/wp-includes/js/dist/rich-text.min.js:2:21283)
at ae (https://c0.wp.com/c/5.9.1/wp-includes/js/dist/rich-text.min.js:2:20218)
at ge (https://c0.wp.com/c/5.9.1/wp-includes/js/dist/rich-text.min.js:2:21723)
at he (https://c0.wp.com/c/5.9.1/wp-includes/js/dist/rich-text.min.js:2:22161)
at x (https://c0.wp.com/c/5.9.1/wp-includes/js/dist/rich-text.min.js:2:33710)
at L (https://c0.wp.com/c/5.9.1/wp-includes/js/dist/rich-text.min.js:2:34956)
at https://c0.wp.com/c/5.9.1/wp-includes/js/dist/rich-text.min.js:2:36207
at https://c0.wp.com/c/5.9.1/wp-includes/js/dist/compose.min.js:2:6078
at A (https://c0.wp.com/c/5.9.1/wp-includes/js/dist/compose.min.js:2:9347)
at https://c0.wp.com/c/5.9.1/wp-includes/js/dist/compose.min.js:2:9803

Thanks.

Attachments (1)

Screenshot 2022-03-11 115709.jpg (19.6 KB) - added by ecparkin 2 years ago.
Dashboard error when trying to edit page with HTML code in page title

Download all attachments as: .zip

Change History (3)

@ecparkin
2 years ago

Dashboard error when trying to edit page with HTML code in page title

#1 @costdev
2 years ago

  • Component changed from Posts, Post Types to Editor
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

Hi @ecparkin, welcome to Trac!

This appears to have been introduced in WordPress 5.9 when changes included in Gutenberg 11.4.0 were added to WordPress.

On WordPress 5.9, the error is shown.
On WordPress 5.8, the error is not shown.
On WordPress 5.8 with Gutenberg 11.3.0, the error is not shown.
On WordPress 5.8 with Gutenberg 11.4.0, the error is shown.

I have opened an issue on the Gutenberg repository so that the folks over there can investigate this further.

I'll close this ticket so that discussion can be focused over there.

#2 @azouamauriac
23 months ago

#55527 was marked as a duplicate.

Note: See TracTickets for help on using tickets.