Making WordPress.org

Opened 7 weeks ago

Closed 4 weeks ago

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

Invalid HTML: Stray </path> tag in Tumblr footer icon

Reported by: ravichudasama01 Owned by:
Priority: normal Milestone:
Component: WordPress.org Site Keywords: needs-patch
Cc:

Description

The global footer contains an invalid HTML structure for the Tumblr social media icon. The SVG path element is self-closing but is incorrectly followed by an explicit closing tag, which throws a W3C validation error ("Stray end tag path").

Steps to reproduce:

  1. Navigate to the global footer on any Make WordPress site (e.g., https://make.wordpress.org/)
  2. Right-click the page background and select "View Page Source" (Ctrl+U)
  3. Search for the Tumblr social link HTML code
  4. Observe the stray </path> tag immediately following the self-closing <path d="..." /> element

Actual behavior:
The HTML source code outputs <path d="..." /></path>. The explicit </path> tag is rendered as a stray end tag because the element was already closed via the /> syntax.

Expected behavior:
The SVG path element should only use one method of closing. It should be output strictly as <path d="..." /> without the trailing </path> tag to ensure valid HTML and prevent W3C validation errors.

Change History (1)

#1 @obenland
4 weeks ago

  • Resolutionreported-upstream
  • Status newclosed

Thanks, I created a PR in Gutenberg to fix this.

It'll be sync'ed to Core and from there to WP.org.

Note: See TracTickets for help on using tickets.