Closed (duplicate)
Project:
Drupal core
Version:
11.x-dev
Component:
render system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Mar 2023 at 07:25 UTC
Updated:
6 Mar 2024 at 15:22 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
dries commentedComment #4
tintoComment #5
tintoThis patch simply changes the closing of the opening tag for void elements from
/>to>on line 91 of core/lib/Drupal/Core/Render/Element/HtmlTag.php.Comment #6
tintoSome code refactoring in
core/lib/Drupal/Core/Render/Element/HtmlTag.phpand fixing automated test fails.Comment #7
tintoComment #8
smustgrave commentedThe idea makes sense but my concern with making such a change could cause issues for existing sites. Maybe both scenarios should be supported with a warning for the old way?
Comment #9
smustgrave commentedGoing to see what the committers think.
Comment #11
smustgrave commentedSeems random
Comment #12
catchI think this is probably OK, it would likely only fail if a site specifies xhtml output which I doubt any are doing these days. However putting in front of the front end framework managers for a look.
Comment #13
poker10 commentedThere seems to be a related issue: #1388926: Remove all references to "self-closing" void elements in core (with a broader scope probably).
Comment #16
tintoI was about to reroll #6, but after discussing briefly with @laurii and @longwave, I've decided to mark this issue as duplicate of #1388926: Remove all references to "self-closing" void elements in core. The work done in that issue probably covers all void elements everywhere, including the code covered here.
Let's continue the work there!
Comment #17
webtematica commentedThis happen in Drupal 10 also.
EDIT: Sorry i just see it refers to drupal 10
Comment #18
juanjolUploaded patch in #6 with 10.2 compatibility for projects that rely on this patch, until related Issue is fixed, or a valid solution is found.
Comment #19
juanjolWrong patch filename, fixing it.
Comment #20
tintoThanks for the patch, Juanjol. However, this issue was marked Closed (duplicate).
I suggest we continue to discuss/work in #1388926: Remove all references to "self-closing" void elements in core, starting with the discussion about how we can improve the issue by dividing the work needed into seperate issues with a smaller scope.
Comment #21
bryan toapanta commentedUploaded patch in #19 with 10.2.4 compatibility.