[wp-trac] [WordPress Trac] #63824: button is not a self-closing HTML element and needs a closing tag

WordPress Trac noreply at wordpress.org
Wed Aug 13 22:00:39 UTC 2025


#63824: button is not a self-closing HTML element and needs a closing tag
--------------------------+----------------------
 Reporter:  kkmuffme      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Media         |     Version:  4.8
 Severity:  trivial       |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------

Comment (by SirLouen):

 @ocean90 I think that this is exactly what @joedolson already suggested in
 the first comment, but the reason of why this was reopened
 [https://core.trac.wordpress.org/ticket/63824#comment:4 is here].

 According to @kkmuffme:
 > So yeah, you can pass incomplete HTML, but it's always better to
 directly pass valid HTML to reduce the parser work. Furthermore, with some
 tags (not this one), this is actually unsafe and allows for XSS attacks.
 Therefore it only makes sense to consistently enforce valid, complete HTML
 to be used.

 I going to leave this closed for you to reconsider if it's worthy of
 reopening or not based on this premise.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63824#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list