[wp-trac] [WordPress Trac] #56457: WPCS: Self closing tags are not property closed.

WordPress Trac noreply at wordpress.org
Mon Aug 29 13:47:17 UTC 2022


#56457: WPCS: Self closing tags are not property closed.
----------------------------+-------------------------------
 Reporter:  haritpanchal    |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  6.1
Component:  Administration  |     Version:
 Severity:  minor           |  Resolution:
 Keywords:  has-patch       |     Focuses:  coding-standards
----------------------------+-------------------------------
Changes (by costdev):

 * focuses:  docs, coding-standards => coding-standards
 * severity:  major => minor
 * version:  6.0.1 =>
 * milestone:  Awaiting Review => 6.1


Comment:

 For tags that are self-closing, the forward slash should have exactly one
 space preceding it:
  `<br />` rather than the compact but incorrect: `<br>`
 [https://developer.wordpress.org/coding-standards/wordpress-coding-
 standards/html/#self-closing-elements HTML Coding Standards - Self-closing
 Elements]

 - Removing `Version` as the patch touches lines added across multiple
 versions of WordPress.

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


More information about the wp-trac mailing list