diff --git a/src/Microsoft.AspNet.Mvc.TagHelpers/LinkTagHelper.cs b/src/Microsoft.AspNet.Mvc.TagHelpers/LinkTagHelper.cs
index 72f83e49e3..3db20ddc7e 100644
--- a/src/Microsoft.AspNet.Mvc.TagHelpers/LinkTagHelper.cs
+++ b/src/Microsoft.AspNet.Mvc.TagHelpers/LinkTagHelper.cs
@@ -18,6 +18,17 @@ namespace Microsoft.AspNet.Mvc.TagHelpers
///
/// implementation targeting <link> elements that supports fallback href paths.
///
+ ///
+ /// The tag helper won't process for cases with just the 'href' attribute.
+ ///
+ [TargetElement("link", Attributes = HrefIncludeAttributeName)]
+ [TargetElement("link", Attributes = HrefExcludeAttributeName)]
+ [TargetElement("link", Attributes = FallbackHrefAttributeName)]
+ [TargetElement("link", Attributes = FallbackHrefIncludeAttributeName)]
+ [TargetElement("link", Attributes = FallbackHrefExcludeAttributeName)]
+ [TargetElement("link", Attributes = FallbackTestClassAttributeName)]
+ [TargetElement("link", Attributes = FallbackTestPropertyAttributeName)]
+ [TargetElement("link", Attributes = FallbackTestValueAttributeName)]
public class LinkTagHelper : TagHelper
{
private const string HrefIncludeAttributeName = "asp-href-include";
@@ -233,7 +244,7 @@ namespace Microsoft.AspNet.Mvc.TagHelpers
CultureInfo.InvariantCulture,
"",
HtmlEncoder.HtmlEncode(FallbackTestClass)));
-
+
// Build the tag that checks the effective style of tag above and renders the extra
// tag to load the fallback stylesheet if the test CSS property value is found to be false,
// indicating that the primary stylesheet failed to load.
diff --git a/src/Microsoft.AspNet.Mvc.TagHelpers/ScriptTagHelper.cs b/src/Microsoft.AspNet.Mvc.TagHelpers/ScriptTagHelper.cs
index 84345190e3..226949f725 100644
--- a/src/Microsoft.AspNet.Mvc.TagHelpers/ScriptTagHelper.cs
+++ b/src/Microsoft.AspNet.Mvc.TagHelpers/ScriptTagHelper.cs
@@ -19,9 +19,14 @@ namespace Microsoft.AspNet.Mvc.TagHelpers
/// implementation targeting <script> elements that supports fallback src paths.
///
///
- /// and are required to not be
- /// null or empty to process.
+ /// The tag helper won't process for cases with just the 'src' attribute.
///
+ [TargetElement("script", Attributes = SrcIncludeAttributeName)]
+ [TargetElement("script", Attributes = SrcExcludeAttributeName)]
+ [TargetElement("script", Attributes = FallbackSrcAttributeName)]
+ [TargetElement("script", Attributes = FallbackSrcIncludeAttributeName)]
+ [TargetElement("script", Attributes = FallbackSrcExcludeAttributeName)]
+ [TargetElement("script", Attributes = FallbackTestExpressionAttributeName)]
public class ScriptTagHelper : TagHelper
{
private const string SrcIncludeAttributeName = "asp-src-include";