Skip to content

Commit

Permalink
Use ordinal comparison when detecting event handler attributes. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSandersonMS committed Jul 31, 2020
1 parent 3e1e69e commit d65de78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ private static void InitializeNewAttributeFrame(ref DiffContext diffContext, ref
// based on the common usage of attributes for DOM events.
if ((newFrame.AttributeValue is MulticastDelegate || newFrame.AttributeValue is EventCallback) &&
newFrame.AttributeName.Length >= 3 &&
newFrame.AttributeName.StartsWith("on"))
newFrame.AttributeName.StartsWith("on", StringComparison.Ordinal))
{
diffContext.Renderer.AssignEventHandlerId(ref newFrame);
}
Expand Down

0 comments on commit d65de78

Please sign in to comment.