Skip to content

Commit

Permalink
Merge pull request #1854 from riganti/htmlwriter-uppercase-warning
Browse files Browse the repository at this point in the history
HtmlWriter: remove upper attribute warning, as it is redundant
  • Loading branch information
tomasherceg authored Sep 7, 2024
2 parents 93b238f + a600e96 commit 2977480
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Framework/Framework/Controls/HtmlWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,6 @@ private void WriteAttrWithTransformers(string name, string attributeName, string
{
WriteHtmlAttribute(attributeName, attributeValue);
}

if (this.enableWarnings && char.IsUpper(attributeName[0]))
{
Warn($"{attributeName} is used as an HTML attribute on element {name}, but it starts with an uppercase letter. Did you intent to use a DotVVM property instead? To silence this warning, just use all lowercase letters for standard HTML attributes.");
}
}

private string ConvertHtmlAttributeValue(object value)
Expand Down

0 comments on commit 2977480

Please sign in to comment.