From decf8823414146fe6feaba0ed9fcfe4044258e04 Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Mon, 2 Nov 2015 16:31:53 -0800 Subject: [PATCH] Update `LinkTagHelper`s `meta` tag to be w3c compliant. - Prior to this change the `` generated had a name attribute. As an alternative we're using the `content` attribute in conjunction with the `name` attribute to ensure compliance. #3449 --- .../LinkTagHelper.cs | 2 +- ...Site.HtmlGeneration_Home.Link.Encoded.html | 34 +++++++++---------- ...ationWebSite.HtmlGeneration_Home.Link.html | 32 ++++++++--------- 3 files changed, 34 insertions(+), 34 deletions(-) diff --git a/src/Microsoft.AspNet.Mvc.TagHelpers/LinkTagHelper.cs b/src/Microsoft.AspNet.Mvc.TagHelpers/LinkTagHelper.cs index 4768c34560..f0d9dca6fd 100644 --- a/src/Microsoft.AspNet.Mvc.TagHelpers/LinkTagHelper.cs +++ b/src/Microsoft.AspNet.Mvc.TagHelpers/LinkTagHelper.cs @@ -338,7 +338,7 @@ namespace Microsoft.AspNet.Mvc.TagHelpers // Build the tag that's used to test for the presence of the stylesheet builder - .AppendHtml(""); diff --git a/test/Microsoft.AspNet.Mvc.FunctionalTests/compiler/resources/HtmlGenerationWebSite.HtmlGeneration_Home.Link.Encoded.html b/test/Microsoft.AspNet.Mvc.FunctionalTests/compiler/resources/HtmlGenerationWebSite.HtmlGeneration_Home.Link.Encoded.html index c8910356c0..27213fd0b4 100644 --- a/test/Microsoft.AspNet.Mvc.FunctionalTests/compiler/resources/HtmlGenerationWebSite.HtmlGeneration_Home.Link.Encoded.html +++ b/test/Microsoft.AspNet.Mvc.FunctionalTests/compiler/resources/HtmlGenerationWebSite.HtmlGeneration_Home.Link.Encoded.html @@ -1,4 +1,4 @@ - + @@ -39,63 +39,63 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -120,7 +120,7 @@ - + diff --git a/test/Microsoft.AspNet.Mvc.FunctionalTests/compiler/resources/HtmlGenerationWebSite.HtmlGeneration_Home.Link.html b/test/Microsoft.AspNet.Mvc.FunctionalTests/compiler/resources/HtmlGenerationWebSite.HtmlGeneration_Home.Link.html index aaf691484c..585cf17fc6 100644 --- a/test/Microsoft.AspNet.Mvc.FunctionalTests/compiler/resources/HtmlGenerationWebSite.HtmlGeneration_Home.Link.html +++ b/test/Microsoft.AspNet.Mvc.FunctionalTests/compiler/resources/HtmlGenerationWebSite.HtmlGeneration_Home.Link.html @@ -39,63 +39,63 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -120,7 +120,7 @@ - +