Closed Standardize the meta, link, img, input, br, and hr tag closings

bzcomputers

Well-known member
Licensed customer
Affected version
2.3.2
It seems even in XenForo 2.3+ there is a mixed use of both the HTML5 standard closing > and the XHTML self closing /> for meta and link tags. It appears all or most img, input, br and hr tags are also still using the XHTML self closing /> backslash.

Assuming since there is a combination of both closings being used currently on the same page there is likely no XHTML parsing going on, nor an attempt to stay compatible with older browsers that may not recognize the HTML5 standard, so the HTML5 standard closing > without the self-closing slash should be good to use now sitewide for all meta, link, img, input, br and hr tags.

XenForo has already moved onto the HTML5 standard for element attributes already.
 
Automated triage: Not a bug

Thank you for reporting this issue. Both ways of closing these tags are valid HTML5, and browsers treat them the same. The mixed style changes nothing about how pages parse, render or validate, so this isn't a bug. Switching to one style everywhere would be a code-style change, which suits the suggestions forum better.

This is an automated assessment. A member of staff may review and update it.
 
Back
Top Bottom