From 1c7af0de6c72b2557783489254f8101cc1184f61 Mon Sep 17 00:00:00 2001 From: Doug Bunting Date: Fri, 23 Oct 2015 14:48:13 -0700 Subject: [PATCH] Improve `[HtmlTargetElement]` doc comments - #562 --- .../TagHelpers/HtmlTargetElementAttribute.cs | 30 ++++++++----------- .../TagHelpers/TagHelperOutput.cs | 1 - 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/src/Microsoft.AspNet.Razor.Runtime/TagHelpers/HtmlTargetElementAttribute.cs b/src/Microsoft.AspNet.Razor.Runtime/TagHelpers/HtmlTargetElementAttribute.cs index 655951cf6c..7a3f789e4f 100644 --- a/src/Microsoft.AspNet.Razor.Runtime/TagHelpers/HtmlTargetElementAttribute.cs +++ b/src/Microsoft.AspNet.Razor.Runtime/TagHelpers/HtmlTargetElementAttribute.cs @@ -15,47 +15,43 @@ namespace Microsoft.AspNet.Razor.TagHelpers public const string ElementCatchAllTarget = TagHelperDescriptorProvider.ElementCatchAllTarget; /// - /// Instantiates a new instance of the class with - /// set to *. + /// Instantiates a new instance of the class that targets all HTML + /// elements with the required . /// - /// A * value indicates an - /// that targets all HTML elements with the required . + /// is set to *. public HtmlTargetElementAttribute() : this(ElementCatchAllTarget) { } /// - /// Instantiates a new instance of the class. + /// Instantiates a new instance of the class with the given + /// as its value. /// /// /// The HTML tag the targets. /// - /// A * value indicates an - /// that targets all HTML elements with the required . + /// A * value indicates this + /// targets all HTML elements with the required . public HtmlTargetElementAttribute(string tag) { Tag = tag; } /// - /// The HTML tag the targets. + /// The HTML tag the targets. A * value indicates this + /// targets all HTML elements with the required . /// - /// A * value indicates an - /// that targets all HTML elements with the required . public string Tag { get; } /// /// A comma-separated of attribute names the HTML element must contain for the - /// to run. + /// to run. * at the end of an attribute name acts as a prefix match. /// - /// - /// * at the end of an attribute name acts as a prefix match. - /// public string Attributes { get; set; } /// - /// The expected tag structure. + /// The expected tag structure. Defaults to . /// /// /// If and no other tag helpers applying to the same element specify @@ -81,9 +77,9 @@ namespace Microsoft.AspNet.Razor.TagHelpers public TagStructure TagStructure { get; set; } /// - /// The required HTML element name of the direct parent. + /// The required HTML element name of the direct parent. A null value indicates any HTML element name is + /// allowed. /// - /// A null value indicates any HTML element name is appropriate. public string ParentTag { get; set; } } } \ No newline at end of file diff --git a/src/Microsoft.AspNet.Razor.Runtime/TagHelpers/TagHelperOutput.cs b/src/Microsoft.AspNet.Razor.Runtime/TagHelpers/TagHelperOutput.cs index b7816fab02..af8eca767c 100644 --- a/src/Microsoft.AspNet.Razor.Runtime/TagHelpers/TagHelperOutput.cs +++ b/src/Microsoft.AspNet.Razor.Runtime/TagHelpers/TagHelperOutput.cs @@ -3,7 +3,6 @@ using System; using System.Threading.Tasks; -using Microsoft.AspNet.Razor.Runtime.TagHelpers; namespace Microsoft.AspNet.Razor.TagHelpers {