This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-92c51b69-e0ba-46b0-b8e8-c579dd64b96e XWIKI-23198 Open

Allow Trailing slash on void elements has no effect and interacts badly with unquoted attribute values on html validation

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-3c513f5b-90c1-424e-8bf1-86e27407f90e Manuel Leduc created this issue on 13/May/25 18:13
 
Summary: Allow Trailing slash on void elements has no effect and interacts badly with unquoted attribute values on html validation
Issue Type: cid:jira-generated-image-avatar-92c51b69-e0ba-46b0-b8e8-c579dd64b96e Task
Affects Versions: 17.4.0-rc-1
Assignee: Unassigned
Components: Development Issues only
Created: 13/May/25 18:13
Priority: cid:jira-generated-image-static-major-8c4ac262-a02f-4b5d-9986-2fe8f7ce4280 Major
Reporter: Manuel Leduc
Description:

When upgrading validator to 25.5.12 (XWIKI-23197), a new warning error was introduced.

Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.

This warning error is raised whenever a self-closing element is closed with a /
For instance, <img src='img.png' /> is raising an error, but <img src='img.png'> is ok.

The issue is widespread and impacting many elements: img, meta, input, link, etc.
Removing all the errors at once is a huge task and we might need to find a way to fix this incrementally.