File tree Expand file tree Collapse file tree
src/nu/validator/htmlparser/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2889,13 +2889,8 @@ public final void startTag(ElementName elementName,
28892889 } else if (wasSelfClosing && voidElement
28902890 && tokenizer .getErrorProfile () != null
28912891 && tokenizer .getErrorProfile ().get ("html-strict" ) != null ) {
2892- warn ("Self-closing tag syntax in text/html documents is widely"
2893- + " discouraged; it’s unnecessary and interacts badly"
2894- + " with other HTML features (e.g., unquoted attribute"
2895- + " values). If you’re using a tool that injects"
2896- + " self-closing tag syntax into all void elements,"
2897- + " without any option to prevent it from doing so,"
2898- + " then consider switching to a different tool." );
2892+ warn ("Trailing slash on void elements has no effect and interacts"
2893+ + " badly with unquoted attribute values." );
28992894 // ]NOCPP]
29002895 }
29012896 // CPPONLY: if (mBuilder == null && attributes != HtmlAttributes.EMPTY_ATTRIBUTES) {
You can’t perform that action at this time.
0 commit comments