195 references to TagMode
Microsoft.AspNetCore.Mvc.Razor.Test (5)
RazorPageTest.cs (5)
982tagMode: TagMode.StartTagAndEndTag, 1024tagMode: TagMode.StartTagAndEndTag, 1070tagMode: TagMode.StartTagAndEndTag, 1113tagMode: TagMode.StartTagAndEndTag, 1143tagMode: TagMode.StartTagAndEndTag,
Microsoft.AspNetCore.Mvc.TagHelpers (2)
InputTagHelper.cs (1)
334output.TagMode == TagMode.SelfClosing ? TagRenderMode.SelfClosing : TagRenderMode.StartTag;
ScriptTagHelper.cs (1)
256output.TagMode = TagMode.StartTagAndEndTag;
Microsoft.AspNetCore.Mvc.TagHelpers.Test (72)
FormActionTagHelperTest.cs (2)
86Assert.Equal(TagMode.StartTagAndEndTag, output.TagMode); 160Assert.Equal(TagMode.StartTagAndEndTag, output.TagMode);
FormTagHelperTest.cs (9)
424Assert.Equal(TagMode.StartTagAndEndTag, output.TagMode); 495Assert.Equal(TagMode.StartTagAndEndTag, output.TagMode); 548Assert.Equal(TagMode.StartTagAndEndTag, output.TagMode); 618Assert.Equal(TagMode.StartTagAndEndTag, output.TagMode); 672Assert.Equal(TagMode.StartTagAndEndTag, output.TagMode); 729Assert.Equal(TagMode.StartTagAndEndTag, output.TagMode); 787Assert.Equal(TagMode.StartTagAndEndTag, output.TagMode); 841Assert.Equal(TagMode.StartTagAndEndTag, output.TagMode); 998Assert.Equal(TagMode.StartTagAndEndTag, output.TagMode);
InputTagHelperTest.cs (45)
94TagMode = TagMode.SelfClosing, 142TagMode = TagMode.SelfClosing, 189TagMode = TagMode.SelfClosing, 233TagMode = TagMode.SelfClosing, 285TagMode = TagMode.SelfClosing, 330TagMode = TagMode.SelfClosing, 384TagMode = TagMode.SelfClosing, 440TagMode = TagMode.SelfClosing, 491TagMode = TagMode.SelfClosing, 547TagMode = TagMode.SelfClosing, 659TagMode = TagMode.StartTagOnly, 690Assert.Equal(TagMode.StartTagOnly, output.TagMode); 732TagMode = TagMode.StartTagOnly, 761Assert.Equal(TagMode.StartTagOnly, output.TagMode); 803TagMode = TagMode.StartTagOnly, 832Assert.Equal(TagMode.StartTagOnly, output.TagMode); 893TagMode = TagMode.SelfClosing, 947TagMode = TagMode.SelfClosing, 1007TagMode = TagMode.SelfClosing, 1067TagMode = TagMode.SelfClosing, 1127TagMode = TagMode.SelfClosing, 1172TagMode = TagMode.SelfClosing, 1215Assert.Equal(TagMode.SelfClosing, output.TagMode); 1272TagMode = TagMode.StartTagOnly, 1314Assert.Equal(TagMode.StartTagOnly, output.TagMode); 1370TagMode = TagMode.SelfClosing, 1438TagMode = TagMode.StartTagOnly, 1479Assert.Equal(TagMode.StartTagOnly, output.TagMode); 1538TagMode = TagMode.StartTagOnly, 1574Assert.Equal(TagMode.StartTagOnly, output.TagMode); 1650TagMode = TagMode.StartTagOnly, 1692Assert.Equal(TagMode.StartTagOnly, output.TagMode); 1768TagMode = TagMode.SelfClosing, 1808Assert.Equal(TagMode.SelfClosing, output.TagMode); 1841TagMode = TagMode.SelfClosing, 1877Assert.Equal(TagMode.SelfClosing, output.TagMode); 1910TagMode = TagMode.SelfClosing, 1946Assert.Equal(TagMode.SelfClosing, output.TagMode); 2004TagMode = TagMode.SelfClosing, 2040Assert.Equal(TagMode.SelfClosing, output.TagMode); 2084TagMode = TagMode.SelfClosing, 2146TagMode = TagMode.SelfClosing, 2214TagMode = TagMode.SelfClosing, 2280TagMode = TagMode.SelfClosing, 2338TagMode = TagMode.SelfClosing,
LabelTagHelperTest.cs (1)
224Assert.Equal(TagMode.StartTagAndEndTag, output.TagMode);
LinkTagHelperTest.cs (1)
1164TagMode = TagMode.SelfClosing,
OptionTagHelperTest.cs (3)
414TagMode = TagMode.StartTagAndEndTag 485TagMode = TagMode.StartTagAndEndTag, 550TagMode = TagMode.StartTagAndEndTag,
RenderAtEndOfFormTagHelperTest.cs (1)
91TagMode.StartTagAndEndTag,
SelectTagHelperTest.cs (8)
214TagMode = TagMode.SelfClosing, 239Assert.Equal(TagMode.SelfClosing, output.TagMode); 304TagMode = TagMode.SelfClosing, 338Assert.Equal(TagMode.SelfClosing, output.TagMode); 395TagMode = TagMode.SelfClosing, 419Assert.Equal(TagMode.SelfClosing, output.TagMode); 484TagMode = TagMode.SelfClosing, 518Assert.Equal(TagMode.SelfClosing, output.TagMode);
TextAreaTagHelperTest.cs (2)
140TagMode = TagMode.SelfClosing, 151Assert.Equal(TagMode.SelfClosing, output.TagMode);
Microsoft.AspNetCore.Razor (11)
TagHelpers\TagHelperOutput.cs (11)
167public TagMode TagMode { get; set; } 184public void Reinitialize(string tagName, TagMode tagMode) 301if (TagMode == TagMode.SelfClosing) 309if (isTagNameNullOrWhitespace || TagMode == TagMode.StartTagAndEndTag) 318if (!isTagNameNullOrWhitespace && TagMode == TagMode.StartTagAndEndTag) 350if (TagMode == TagMode.SelfClosing) 358if (isTagNameNullOrWhitespace || TagMode == TagMode.StartTagAndEndTag) 365if (!isTagNameNullOrWhitespace && TagMode == TagMode.StartTagAndEndTag) 405if (TagMode == TagMode.SelfClosing) 413if (isTagNameNullOrWhitespace || TagMode == TagMode.StartTagAndEndTag) 422if (!isTagNameNullOrWhitespace && TagMode == TagMode.StartTagAndEndTag)
Microsoft.AspNetCore.Razor.Runtime (6)
Runtime\TagHelpers\TagHelperExecutionContext.cs (4)
26internal TagHelperExecutionContext(string tagName, TagMode tagMode) 53TagMode tagMode, 172/// <param name="tagMode">The <see cref="TagMode"/> to use.</param> 178TagMode tagMode,
Runtime\TagHelpers\TagHelperScopeManager.cs (2)
45TagMode tagMode, 121TagMode tagMode,
Microsoft.AspNetCore.Razor.Runtime.Test (45)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (27)
20tagMode: TagMode.StartTagAndEndTag, 43tagMode: TagMode.StartTagAndEndTag, 68tagMode: TagMode.StartTagAndEndTag, 92var tagMode = TagMode.StartTagOnly; 110var updatedTagMode = TagMode.SelfClosing; 148var tagMode = TagMode.StartTagOnly; 190[InlineData(TagMode.SelfClosing)] 191[InlineData(TagMode.StartTagAndEndTag)] 192[InlineData(TagMode.StartTagOnly)] 193public void ExecutionContext_CreateTagHelperOutput_ReturnsExpectedTagMode(TagMode tagMode) 217tagMode: TagMode.StartTagAndEndTag, 271tagMode: TagMode.StartTagAndEndTag, 299tagMode: TagMode.StartTagAndEndTag, 321tagMode: TagMode.StartTagAndEndTag, 348tagMode: TagMode.StartTagAndEndTag, 375tagMode: TagMode.StartTagAndEndTag, 405tagMode: TagMode.StartTagAndEndTag, 432tagMode: TagMode.StartTagAndEndTag, 451var executionContext = new TagHelperExecutionContext("p", TagMode.StartTagAndEndTag); 474var executionContext = new TagHelperExecutionContext("input", tagMode: TagMode.StartTagOnly); 497var executionContext = new TagHelperExecutionContext("input", tagMode: TagMode.SelfClosing); 528var executionContext = new TagHelperExecutionContext("p", TagMode.StartTagAndEndTag); 553var executionContext = new TagHelperExecutionContext("p", TagMode.StartTagAndEndTag); 568var executionContext = new TagHelperExecutionContext("p", TagMode.StartTagAndEndTag);
Runtime\TagHelpers\TagHelperRunnerTest.cs (12)
16var executionContext = new TagHelperExecutionContext("p", TagMode.StartTagAndEndTag); 92var executionContext = new TagHelperExecutionContext("p", TagMode.StartTagAndEndTag); 112[InlineData(TagMode.SelfClosing)] 113[InlineData(TagMode.StartTagAndEndTag)] 114[InlineData(TagMode.StartTagOnly)] 115public async Task RunAsync_SetsTagHelperOutputTagMode(TagMode tagMode) 137var executionContext = new TagHelperExecutionContext("p", TagMode.StartTagAndEndTag); 156var executionContext = new TagHelperExecutionContext("p", TagMode.StartTagAndEndTag); 169Assert.Equal(TagMode.SelfClosing, output.TagMode); 177var executionContext = new TagHelperExecutionContext("p", TagMode.StartTagAndEndTag); 194var executionContext = new TagHelperExecutionContext("p", TagMode.StartTagAndEndTag); 223output.TagMode = TagMode.SelfClosing;
Runtime\TagHelpers\TagHelperScopeManagerTest.cs (6)
154[InlineData(TagMode.SelfClosing)] 155[InlineData(TagMode.StartTagAndEndTag)] 156[InlineData(TagMode.StartTagOnly)] 157public void Begin_SetsExecutionContexts_TagHelperOutputTagMode(TagMode tagMode) 233TagMode tagMode = TagMode.StartTagAndEndTag)
Microsoft.AspNetCore.Razor.Test (53)
TagHelpers\TagHelperOutputTest.cs (53)
24var initialTagMode = TagMode.StartTagOnly; 40var expectedTagMode = TagMode.SelfClosing; 414tagMode: TagMode.StartTagAndEndTag, 426tagMode: TagMode.StartTagAndEndTag, 438tagMode: TagMode.StartTagAndEndTag, 450tagMode: TagMode.StartTagAndEndTag, 466tagMode: TagMode.StartTagAndEndTag, 482tagMode: TagMode.StartTagAndEndTag, 497tagMode: TagMode.StartTagAndEndTag, 513tagMode: TagMode.StartTagAndEndTag, 529tagMode: TagMode.StartTagAndEndTag, 545tagMode: TagMode.StartTagAndEndTag, 557tagMode: TagMode.SelfClosing, 573tagMode: TagMode.SelfClosing, 588tagMode: TagMode.StartTagOnly, 604tagMode: TagMode.StartTagOnly, 616tagMode: TagMode.StartTagAndEndTag, 628tagMode: TagMode.StartTagAndEndTag, 640tagMode: TagMode.StartTagAndEndTag, 652tagMode: TagMode.StartTagAndEndTag, 664tagMode: TagMode.SelfClosing, 676tagMode: TagMode.StartTagOnly, 688tagMode: TagMode.StartTagAndEndTag, 700tagMode: TagMode.SelfClosing, 712tagMode: TagMode.StartTagOnly, 724tagMode: TagMode.StartTagAndEndTag, 736tagMode: TagMode.StartTagAndEndTag, 748tagMode: TagMode.SelfClosing, 760tagMode: TagMode.SelfClosing, 772tagMode: TagMode.SelfClosing, 784tagMode: TagMode.StartTagOnly, 799tagMode: TagMode.StartTagOnly, 811tagMode: TagMode.StartTagOnly, 823tagMode: TagMode.StartTagOnly, 835tagMode: TagMode.StartTagAndEndTag, 847tagMode: TagMode.StartTagAndEndTag, 859tagMode: TagMode.SelfClosing, 871tagMode: TagMode.SelfClosing, 883tagMode: TagMode.SelfClosing, 895tagMode: TagMode.StartTagOnly, 907tagMode: TagMode.StartTagOnly, 919tagMode: TagMode.StartTagOnly, 931tagMode: TagMode.StartTagAndEndTag, 943tagMode: TagMode.StartTagAndEndTag, 955tagMode: TagMode.SelfClosing, 967tagMode: TagMode.SelfClosing, 979tagMode: TagMode.StartTagOnly, 991tagMode: TagMode.StartTagOnly, 1003tagMode: TagMode.StartTagAndEndTag, 1015tagMode: TagMode.StartTagAndEndTag, 1093TagMode tagMode,
TagHelpersWebSite (1)
TagHelpers\WebsiteInformationTagHelper.cs (1)
27output.TagMode = TagMode.StartTagAndEndTag;