[wp-trac] [WordPress Trac] #55371: HTML code in page title causes error in Dashboard

WordPress Trac noreply at wordpress.org
Fri Mar 11 10:58:15 UTC 2022


#55371: HTML code in page title causes error in Dashboard
-------------------------------+-----------------------------
 Reporter:  ecparkin           |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  5.9.2
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55371>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list