Let sEncodedHref represent an HttpUtility.HtmlAttributeEncode(..)‘d string.
Are there any functional differences between generated html like this:
String.Format(@"<span class='blue' src='{0}'>", sEncodedHref);
vs. generated html like this:
String.Format(@"<span class=""blue"" src=""{0}"">", sEncodedHref);
I’ve been under the impression that the single-quoted variant is both less supported and less “safe”, however I have trouble providing reasons to support that argument.
There is no functional difference. Quoting the W3C on SGML and HMTL: