File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/nu/validator/htmlparser/impl Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -2889,13 +2889,8 @@ public final void startTag(ElementName elementName,
2889
2889
} else if (wasSelfClosing && voidElement
2890
2890
&& tokenizer .getErrorProfile () != null
2891
2891
&& 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." );
2899
2894
// ]NOCPP]
2900
2895
}
2901
2896
// CPPONLY: if (mBuilder == null && attributes != HtmlAttributes.EMPTY_ATTRIBUTES) {
You can’t perform that action at this time.
0 commit comments