50 references to PostElement
Microsoft.AspNetCore.Mvc.TagHelpers (4)
InputTagHelper.cs (2)
262GenerateInvariantCultureMetadata(fullName, output.PostElement); 361output.PostElement.AppendHtml(hiddenForCheckboxTag);
LinkTagHelper.cs (1)
289var builder = output.PostElement;
ScriptTagHelper.cs (1)
302var builder = output.PostElement;
Microsoft.AspNetCore.Mvc.TagHelpers.Test (29)
FormActionTagHelperTest.cs (2)
83Assert.False(output.PostElement.IsModified); 157Assert.False(output.PostElement.IsModified);
FormTagHelperTest.cs (3)
233Assert.Empty(output.PostElement.GetContent()); 291Assert.Empty(output.PostElement.GetContent()); 847Assert.Empty(output.PostElement.GetContent());
InputTagHelperTest.cs (10)
105Assert.NotNull(output.PostElement); 245Assert.Equal(expectedPostElement, output.PostElement.GetContent()); 452Assert.Equal(expectedPostElementContent, HtmlContentUtilities.HtmlContentToString(output.PostElement)); 902Assert.Equal(expectedPostElement, output.PostElement.GetContent()); 959Assert.True(string.IsNullOrEmpty(HtmlContentUtilities.HtmlContentToString(output.PostElement))); 1019Assert.Equal(expectedPostElementContent, HtmlContentUtilities.HtmlContentToString(output.PostElement)); 1079Assert.True(string.IsNullOrEmpty(HtmlContentUtilities.HtmlContentToString(output.PostElement))); 1139Assert.Equal(expectedPostElementContent, HtmlContentUtilities.HtmlContentToString(output.PostElement)); 1214Assert.Equal(expectedPostElement, output.PostElement.GetContent()); 1382Assert.True(string.IsNullOrEmpty(HtmlContentUtilities.HtmlContentToString(output.PostElement)));
LinkTagHelperTest.cs (8)
319Assert.True(output.PostElement.IsModified); 407Assert.True(output.PostElement.IsModified); 543Assert.True(output.PostElement.GetContent().Length == 0); 562Assert.True(output.PostElement.GetContent().Length == 0); 885Assert.Equal(expectedPostElement, output.PostElement.GetContent()); 940Assert.Equal(expectedPostElement, output.PostElement.GetContent()); 1050var content = HtmlContentUtilities.HtmlContentToString(output.PostElement, new HtmlTestEncoder()); 1092var content = HtmlContentUtilities.HtmlContentToString(output.PostElement, new HtmlTestEncoder());
ScriptTagHelperTest.cs (6)
295Assert.True(output.PostElement.IsModified); 383Assert.True(output.PostElement.IsModified); 471Assert.True(output.PostElement.GetContent().Length == 0); 491Assert.True(output.PostElement.GetContent().Length == 0); 864"</script>]]\"));</script>", output.PostElement.GetContent()); 896"</script>]]\"));</script>", output.PostElement.GetContent());
Microsoft.AspNetCore.Razor (1)
TagHelpers\TagHelperOutput.cs (1)
204/// <see cref="Content"/>, <see cref="PostContent"/>, and <see cref="PostElement"/> to suppress output.
Microsoft.AspNetCore.Razor.Test (15)
TagHelpers\TagHelperOutputTest.cs (15)
38output.PostElement.SetContent("something"); 59Assert.False(output.PostElement.IsModified); 217Assert.NotNull(tagHelperOutput.PostElement); 228tagHelperOutput.PostElement.SetContent("Hello World"); 235Assert.NotNull(tagHelperOutput.PostElement); 238tagHelperOutput.PostElement.GetContent(new HtmlTestEncoder())); 276Assert.NotNull(tagHelperOutput.PostElement); 294Assert.NotNull(tagHelperOutput.PostElement); 312Assert.NotNull(tagHelperOutput.PostElement); 340Assert.NotNull(tagHelperOutput.PostElement); 341Assert.Empty(tagHelperOutput.PostElement.GetContent(new HtmlTestEncoder())); 372Assert.NotNull(tagHelperOutput.PostElement); 373Assert.Empty(tagHelperOutput.PostElement.GetContent(new HtmlTestEncoder())); 1084Assert.Equal(string.Empty, output.PostElement.GetContent()); 1131output.PostElement.AppendHtml(postElement);
TagHelpersWebSite (1)
TagHelpers\SurroundTagHelper.cs (1)
27output.PostElement.AppendHtml($"</{surroundingTagName}>");