1 write to Attributes
Microsoft.AspNetCore.Razor (1)
TagHelpers\TagHelperOutput.cs (1)
50
Attributes
= attributes;
296 references to Attributes
Microsoft.AspNetCore.Mvc.Razor (2)
TagHelpers\UrlResolutionTagHelper.cs (2)
141
/// <paramref name="output"/>'s <see cref="TagHelperOutput.
Attributes
"/> whose
151
var attributes = output.
Attributes
;
Microsoft.AspNetCore.Mvc.Razor.Test (12)
RazorPageTest.cs (5)
996
var htmlAttribute = Assert.Single(output.
Attributes
);
1041
var htmlAttribute = Assert.Single(output.
Attributes
);
1087
var htmlAttribute = Assert.Single(output.
Attributes
);
1127
Assert.Empty(output.
Attributes
);
1157
var htmlAttribute = Assert.Single(output.
Attributes
);
TagHelpers\UrlResolutionTagHelperTest.cs (7)
87
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
129
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
189
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
247
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
303
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
334
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
429
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
Microsoft.AspNetCore.Mvc.TagHelpers (51)
AnchorTagHelper.cs (1)
169
if (output.
Attributes
.ContainsName(Href))
FormActionTagHelper.cs (2)
184
if (output.
Attributes
.ContainsName(FormAction))
262
output.
Attributes
.SetAttribute(FormAction, url);
FormTagHelper.cs (1)
169
if (output.
Attributes
.TryGetAttribute(HtmlActionAttributeName, out var actionAttribute))
ImageTagHelper.cs (2)
125
Src = output.
Attributes
[SrcAttributeName].Value as string;
128
output.
Attributes
.SetAttribute(SrcAttributeName, src);
InputTagHelper.cs (3)
205
if (!output.
Attributes
.ContainsName("type"))
207
output.
Attributes
.SetAttribute("type", inputType);
345
if (output.
Attributes
.TryGetAttribute("form", out var formAttribute))
LinkTagHelper.cs (7)
265
Href = output.
Attributes
[HrefAttributeName]?.Value as string;
280
var index = output.
Attributes
.IndexOfName(HrefAttributeName);
281
var existingAttribute = output.
Attributes
[index];
282
output.
Attributes
[index] = new TagHelperAttribute(
294
BuildGlobbedLinkTags(output.
Attributes
, builder);
303
if (mode == Mode.Fallback && HasStyleSheetLinkType(output.
Attributes
))
310
BuildFallbackBlock(output.
Attributes
, builder);
OptionTagHelper.cs (2)
71
if (!output.
Attributes
.ContainsName("selected"))
118
output.
Attributes
.Add("selected", "selected");
ScriptTagHelper.cs (7)
257
output.
Attributes
.SetAttribute("type", "importmap");
279
Src = output.
Attributes
[SrcAttributeName]?.Value as string;
293
var index = output.
Attributes
.IndexOfName(SrcAttributeName);
294
var existingAttribute = output.
Attributes
[index];
295
output.
Attributes
[index] = new TagHelperAttribute(
307
BuildGlobbedScriptTags(output.
Attributes
, builder);
323
BuildFallbackBlock(output.
Attributes
, builder);
TagHelperOutputExtensions.cs (25)
23
/// <see cref="TagHelperOutput.
Attributes
"/>.
31
/// <see cref="TagHelperOutput.
Attributes
"/> does not contain an attribute with the given
36
/// or <paramref name="tagHelperOutput"/>'s <see cref="TagHelperOutput.
Attributes
"/> may result in copied
48
if (!tagHelperOutput.
Attributes
.ContainsName(attributeName))
83
/// <remarks>Existing <see cref="TagHelperOutput.
Attributes
"/> on the given <paramref name="tagHelperOutput"/>
92
if (!tagHelperOutput.
Attributes
.ContainsName(attribute.Key))
94
tagHelperOutput.
Attributes
.Add(attribute.Key, attribute.Value);
98
var found = tagHelperOutput.
Attributes
.TryGetAttribute("class", out var classAttribute);
106
tagHelperOutput.
Attributes
.SetAttribute(newAttribute);
113
/// <see cref="TagHelperOutput.
Attributes
"/>.
126
tagHelperOutput.
Attributes
.Remove(attribute);
132
/// <see cref="TagHelperOutput.
Attributes
"/>.
156
if (!tagHelperOutput.
Attributes
.TryGetAttribute("class", out TagHelperAttribute classAttribute))
158
tagHelperOutput.
Attributes
.Add("class", classValue);
185
tagHelperOutput.
Attributes
.SetAttribute(newClassAttribute);
191
/// <see cref="TagHelperOutput.
Attributes
"/>.
210
if (!tagHelperOutput.
Attributes
.TryGetAttribute("class", out TagHelperAttribute classAttribute))
226
tagHelperOutput.
Attributes
.Remove(classAttribute);
249
tagHelperOutput.
Attributes
.SetAttribute(classAttribute.Name, joinedClasses);
253
tagHelperOutput.
Attributes
.Remove(classAttribute);
298
var index = IndexOfFirstMatch(previousName, tagHelperOutput.
Attributes
);
301
tagHelperOutput.
Attributes
.Insert(index + 1, existingAttribute);
313
var index = IndexOfFirstMatch(nextName, tagHelperOutput.
Attributes
);
316
tagHelperOutput.
Attributes
.Insert(index, existingAttribute);
322
tagHelperOutput.
Attributes
.Add(existingAttribute);
ValidationMessageTagHelper.cs (1)
65
output.
Attributes
.ContainsName(DataValidationForAttributeName))
Microsoft.AspNetCore.Mvc.TagHelpers.Test (197)
AnchorTagHelperTest.cs (8)
78
Assert.Equal(2, output.
Attributes
.Count);
79
var attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("id"));
81
attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("href"));
133
Assert.Empty(output.
Attributes
);
185
Assert.Empty(output.
Attributes
);
243
Assert.Empty(output.
Attributes
);
302
Assert.Empty(output.
Attributes
);
360
Assert.Empty(output.
Attributes
);
FormActionTagHelperTest.cs (6)
70
output.
Attributes
,
144
output.
Attributes
,
248
var attribute = Assert.Single(output.
Attributes
);
306
var attribute = Assert.Single(output.
Attributes
);
379
var attribute = Assert.Single(output.
Attributes
);
432
var attribute = Assert.Single(output.
Attributes
);
FormTagHelperTest.cs (22)
114
Assert.Equal(2, output.
Attributes
.Count);
115
var attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("method"));
117
attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("action"));
168
Assert.Equal(2, output.
Attributes
.Count);
169
var attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("method"));
171
attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("action"));
227
var attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("action"));
285
var attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("action"));
356
Assert.Equal(3, output.
Attributes
.Count);
357
var attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("id"));
359
attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("method"));
361
attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("action"));
425
var attribute = Assert.Single(output.
Attributes
);
453
output.
Attributes
.Add(expectedAttribute);
496
var attribute = Assert.Single(output.
Attributes
);
549
Assert.Empty(output.
Attributes
);
619
var attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("action"));
673
Assert.Empty(output.
Attributes
);
730
Assert.Empty(output.
Attributes
);
788
Assert.Empty(output.
Attributes
);
842
Assert.Empty(output.
Attributes
);
999
var attribute = Assert.Single(output.
Attributes
);
ImageTagHelperTest.cs (13)
77
(string)output.
Attributes
["src"].Value,
120
Assert.Equal(4, output.
Attributes
.Count);
122
for (var i = 0; i < expectedOutput.
Attributes
.Count; i++)
124
var expectedAttribute = expectedOutput.
Attributes
[i];
125
var actualAttribute = output.
Attributes
[i];
159
Assert.Equal(2, output.
Attributes
.Count);
160
var srcAttribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("src"));
211
Assert.Equal(2, output.
Attributes
.Count);
212
var srcAttribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("src"));
254
Assert.Equal(2, output.
Attributes
.Count);
255
var srcAttribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("src"));
286
Assert.Equal(2, output.
Attributes
.Count);
287
var srcAttribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("src"));
InputTagHelperTest.cs (26)
391
Assert.Equal(expectedAttributes, output.
Attributes
);
447
Assert.Equal(expectedAttributes, output.
Attributes
);
498
Assert.Equal(expectedAttributes, output.
Attributes
);
554
Assert.Equal(expectedAttributes, output.
Attributes
);
686
Assert.Equal(expectedAttributes, output.
Attributes
);
757
Assert.Equal(expectedAttributes, output.
Attributes
);
828
Assert.Equal(expectedAttributes, output.
Attributes
);
954
Assert.Equal(expectedAttributes, output.
Attributes
);
1014
Assert.Equal(expectedAttributes, output.
Attributes
);
1074
Assert.Equal(expectedAttributes, output.
Attributes
);
1134
Assert.Equal(expectedAttributes, output.
Attributes
);
1209
Assert.NotEmpty(output.
Attributes
);
1315
Assert.Equal(expectedAttributes, output.
Attributes
, CaseSensitiveTagHelperAttributeComparer.Default);
1377
Assert.Equal(expectedAttributes, output.
Attributes
);
1480
Assert.Equal(expectedAttributes, output.
Attributes
, CaseSensitiveTagHelperAttributeComparer.Default);
1575
Assert.Equal(expectedAttributes, output.
Attributes
, CaseSensitiveTagHelperAttributeComparer.Default);
1693
Assert.Equal(expectedAttributes, output.
Attributes
, CaseSensitiveTagHelperAttributeComparer.Default);
1809
Assert.Equal(expectedAttributes, output.
Attributes
);
1878
Assert.Equal(expectedAttributes, output.
Attributes
);
1947
Assert.Equal(expectedAttributes, output.
Attributes
);
2041
Assert.Equal(expectedAttributes, output.
Attributes
);
2110
Assert.Equal(expectedAttributes, output.
Attributes
);
2167
Assert.Equal(expectedAttributes, output.
Attributes
);
2242
Assert.Equal(expectedAttributes, output.
Attributes
);
2303
Assert.Equal(expectedAttributes, output.
Attributes
);
2366
Assert.Equal(expectedAttributes, output.
Attributes
);
LabelTagHelperTest.cs (2)
218
Assert.Equal(expectedAttributes, output.
Attributes
);
327
Assert.Equal(expectedAttributes, output.
Attributes
);
LinkTagHelperTest.cs (20)
75
(string)output.
Attributes
["href"].Value,
159
var expectedAttributes = new TagHelperAttributeList(output.
Attributes
)
168
Assert.Equal(expectedAttributes, output.
Attributes
);
443
Assert.Equal("rel", output.
Attributes
[0].Name);
444
Assert.Equal("href", output.
Attributes
[1].Name);
445
Assert.Equal("data-extra", output.
Attributes
[2].Name);
542
Assert.Empty(output.
Attributes
);
561
Assert.Empty(output.
Attributes
);
600
Assert.Equal("/css/site.css", output.
Attributes
["href"].Value);
641
Assert.Equal("/css/site.css", output.
Attributes
["href"].Value);
694
Assert.Equal("/css/site.css", output.
Attributes
["href"].Value);
725
Assert.Equal("/css/site.css?v=f4OxZX_x_FO5LcGBSKHWXfwtSx-j1ncoSt3SABJtkGk", output.
Attributes
["href"].Value);
759
Assert.Equal(expected, output.
Attributes
["href"].Value);
801
Assert.Equal("/approot/css/site.fingerprint.css", output.
Attributes
["href"].Value);
831
Assert.Equal("/bar/css/site.css?v=f4OxZX_x_FO5LcGBSKHWXfwtSx-j1ncoSt3SABJtkGk", output.
Attributes
["href"].Value);
884
Assert.Equal("/css/site.css?v=f4OxZX_x_FO5LcGBSKHWXfwtSx-j1ncoSt3SABJtkGk", output.
Attributes
["href"].Value);
939
Assert.Equal("/css/site.fingerprint.css", output.
Attributes
["href"].Value);
1009
Assert.Equal("/css/site.css?v=f4OxZX_x_FO5LcGBSKHWXfwtSx-j1ncoSt3SABJtkGk", output.
Attributes
["href"].Value);
1049
Assert.Equal("/css/site.css?v=f4OxZX_x_FO5LcGBSKHWXfwtSx-j1ncoSt3SABJtkGk", output.
Attributes
["href"].Value);
1091
Assert.Equal("/css/site.fingerprint.css", output.
Attributes
["href"].Value);
OptionTagHelperTest.cs (4)
438
Assert.Equal(expectedTagHelperOutput.
Attributes
.Count, output.
Attributes
.Count);
439
foreach (var attribute in output.
Attributes
)
441
Assert.Contains(attribute, expectedTagHelperOutput.
Attributes
);
ScriptTagHelperTest.cs (21)
74
(string)output.
Attributes
["src"].Value,
106
var expectedAttributes = new TagHelperAttributeList(output.
Attributes
);
113
Assert.Equal(expectedAttributes, output.
Attributes
);
470
Assert.Empty(output.
Attributes
);
490
Assert.Empty(output.
Attributes
);
524
Assert.Equal("data-extra", output.
Attributes
[0].Name);
525
Assert.Equal("src", output.
Attributes
[1].Name);
526
Assert.Equal("data-more", output.
Attributes
[2].Name);
559
Assert.Equal("/js/site.js", output.
Attributes
["src"].Value);
612
Assert.Equal("/js/site.js", output.
Attributes
["src"].Value);
638
Assert.Equal("/js/site.js?v=f4OxZX_x_FO5LcGBSKHWXfwtSx-j1ncoSt3SABJtkGk", output.
Attributes
["src"].Value);
668
Assert.Equal(expected, output.
Attributes
["src"].Value);
706
Assert.Equal("/approot/js/site.fingerprint.js", output.
Attributes
["src"].Value);
833
Assert.Equal("/bar/js/site.js?v=f4OxZX_x_FO5LcGBSKHWXfwtSx-j1ncoSt3SABJtkGk", output.
Attributes
["src"].Value);
861
Assert.Equal("/js/site.js?v=f4OxZX_x_FO5LcGBSKHWXfwtSx-j1ncoSt3SABJtkGk", output.
Attributes
["src"].Value);
893
Assert.Equal("/js/site.fingerprint.js", output.
Attributes
["src"].Value);
946
Assert.Equal("/js/site.js?v=f4OxZX_x_FO5LcGBSKHWXfwtSx-j1ncoSt3SABJtkGk", output.
Attributes
["src"].Value);
984
Assert.Equal("/js/site.js?v=f4OxZX_x_FO5LcGBSKHWXfwtSx-j1ncoSt3SABJtkGk", output.
Attributes
["src"].Value);
1023
Assert.Equal("/js/site.fingerprint.js", output.
Attributes
["src"].Value);
1062
Assert.Equal("module", output.
Attributes
["type"].Value);
1063
Assert.Equal("/approot/js/site.fingerprint.js", output.
Attributes
["src"].Value);
SelectTagHelperTest.cs (6)
240
Assert.Equal(expectedAttributes, output.
Attributes
);
339
Assert.Equal(expectedAttributes, output.
Attributes
);
420
Assert.Equal(expectedAttributes, output.
Attributes
);
519
Assert.Equal(expectedAttributes, output.
Attributes
);
774
var attribute = Assert.Single(output.
Attributes
);
823
var attribute = Assert.Single(output.
Attributes
);
TagHelperOutputExtensionsTest.cs (41)
349
Assert.Equal(expectedAttributes, output.
Attributes
, CaseSensitiveTagHelperAttributeComparer.Default);
451
Assert.Equal(expectedAttributes, output.
Attributes
, CaseSensitiveTagHelperAttributeComparer.Default);
483
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
518
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
566
tagHelperOutput.
Attributes
.Add(expectedAttribute);
568
var attributes = tagHelperOutput.
Attributes
576
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
594
tagHelperOutput.
Attributes
.Add(expectedAttribute);
595
var attributes = tagHelperOutput.
Attributes
602
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
620
tagHelperOutput.
Attributes
.Add(expectedAttribute);
622
var attributes = tagHelperOutput.
Attributes
629
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
791
tagHelperOutput.
Attributes
,
805
tagHelperOutput.
Attributes
.Add(expectedAttribute);
814
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
827
tagHelperOutput.
Attributes
.Add("class", "Hello");
838
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
855
tagHelperOutput.
Attributes
.Add(originalName, "Hello");
864
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
889
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
913
Assert.Equal(2, tagHelperOutput.
Attributes
.Count);
914
var attribute = Assert.Single(tagHelperOutput.
Attributes
, attr => attr.Name.Equals("class"));
916
attribute = Assert.Single(tagHelperOutput.
Attributes
, attr => attr.Name.Equals("class2"));
930
tagHelperOutput.
Attributes
.Add(expectedAttribute);
938
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
952
tagHelperOutput.
Attributes
.Add(expectedOutputAttribute);
962
Assert.Equal(2, tagHelperOutput.
Attributes
.Count);
963
var attribute = Assert.Single(tagHelperOutput.
Attributes
, attr => attr.Name.Equals("class"));
965
attribute = Assert.Single(tagHelperOutput.
Attributes
, attr => attr.Name.Equals("for"));
986
var classAttribute = Assert.Single(tagHelperOutput.
Attributes
, attr => attr.Name.Equals("class"));
1008
var classAttribute = Assert.Single(tagHelperOutput.
Attributes
, attr => attr.Name.Equals("class"));
1034
var classAttribute = Assert.Single(tagHelperOutput.
Attributes
, attr => attr.Name.Equals("class"));
1071
tagHelperOutput.
Attributes
.SetAttribute("class", new HtmlString("HtmlEncode[[btn]] HtmlEncode[[btn]]"));
1077
var classAttribute = tagHelperOutput.
Attributes
["class"];
1094
tagHelperOutput.
Attributes
.SetAttribute("class", new HtmlString("HtmlEncode[[btn]] HtmlEncode[[btn-primary]] HtmlEncode[[btn]]"));
1100
var classAttribute = Assert.Single(tagHelperOutput.
Attributes
, attr => attr.Name.Equals("class"));
1115
tagHelperOutput.
Attributes
.SetAttribute("class", new HtmlString("HtmlEncode[[btn]]"));
1121
var classAttribute = tagHelperOutput.
Attributes
["class"];
1138
tagHelperOutput.
Attributes
.SetAttribute("class", new HtmlString("HtmlEncode[[btn]] HtmlEncode[[btn-primary]]"));
1144
var classAttribute = Assert.Single(tagHelperOutput.
Attributes
, attr => attr.Name.Equals("class"));
TextAreaTagHelperTest.cs (2)
152
Assert.Equal(expectedAttributes, output.
Attributes
);
230
var attribute = Assert.Single(output.
Attributes
);
ValidationMessageTagHelperTest.cs (15)
73
Assert.Equal(4, output.
Attributes
.Count);
74
var attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("id"));
76
attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("class"));
78
attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("data-valmsg-for"));
80
attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("data-valmsg-replace"));
177
Assert.Collection(output.
Attributes
,
228
var attribute = Assert.Single(output.
Attributes
);
284
Assert.Empty(output.
Attributes
);
346
Assert.Equal(2, output.
Attributes
.Count);
347
var attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("data-foo"));
349
attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("data-hello"));
408
Assert.Equal(2, output.
Attributes
.Count);
409
var attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("data-foo"));
411
attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("data-hello"));
449
Assert.Empty(output.
Attributes
);
ValidationSummaryTagHelperTest.cs (11)
86
Assert.Equal(expectedAttributes, output.
Attributes
, CaseSensitiveTagHelperAttributeComparer.Default);
131
Assert.Empty(output.
Attributes
);
199
Assert.Empty(output.
Attributes
);
254
Assert.InRange(output.
Attributes
.Count, low: 1, high: 2);
255
var attribute = Assert.Single(output.
Attributes
, attr => attr.Name.Equals("class"));
325
Assert.Equal(expectedAttributes, output.
Attributes
, CaseSensitiveTagHelperAttributeComparer.Default);
386
Assert.Empty(output.
Attributes
);
443
output.
Attributes
,
501
Assert.Empty(output.
Attributes
);
557
Assert.Empty(output.
Attributes
);
638
Assert.Equal(expectedAttributes, output.
Attributes
, CaseSensitiveTagHelperAttributeComparer.Default);
Microsoft.AspNetCore.Razor (8)
TagHelpers\TagHelperOutput.cs (8)
188
Attributes
.Clear();
293
var count =
Attributes
.Count;
296
var attribute =
Attributes
[i];
342
var count =
Attributes
.Count;
345
var attribute =
Attributes
[i];
378
Attributes
.Clear();
397
var count =
Attributes
.Count;
400
var attribute =
Attributes
[i];
Microsoft.AspNetCore.Razor.Runtime (1)
Runtime\TagHelpers\TagHelperExecutionContext.cs (1)
139
Output.
Attributes
.Add(attribute);
Microsoft.AspNetCore.Razor.Runtime.Test (11)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (4)
132
var attribute = Assert.Single(output.
Attributes
);
466
output.
Attributes
,
489
output.
Attributes
,
520
output.
Attributes
,
Runtime\TagHelpers\TagHelperRunnerTest.cs (7)
167
Assert.Equal("somethingelse", output.
Attributes
["class"].Value);
168
Assert.Equal("world", output.
Attributes
["hello"].Value);
186
Assert.Equal("True", executionContext.Output.
Attributes
["foo"].Value);
216
var classIndex = output.
Attributes
.IndexOfName("class");
219
output.
Attributes
[classIndex] = new TagHelperAttribute("class", "somethingelse");
222
output.
Attributes
.Add("hello", "world");
241
output.
Attributes
.Add("foo", context.AllAttributes["foo"].Value.ToString());
Microsoft.AspNetCore.Razor.Test (6)
TagHelpers\TagHelperOutputTest.cs (6)
48
Assert.Empty(output.
Attributes
);
392
tagHelperOutput.
Attributes
.SetAttribute(updateName, "super button");
395
var attribute = Assert.Single(tagHelperOutput.
Attributes
);
1047
var attributeCount = output.
Attributes
.Count;
1060
Assert.Equal(attributeCount, output.
Attributes
.Count);
1085
Assert.Empty(output.
Attributes
);
RazorWebSite (2)
Services\TestBodyTagHelperComponent.cs (1)
37
output.
Attributes
.ContainsName("inject"))
Services\TestHeadTagHelperComponent.cs (1)
14
if (string.Equals(context.TagName, "head", StringComparison.Ordinal) && output.
Attributes
.ContainsName("inject"))
TagHelpersWebSite (6)
TagHelpers\AddProcessedAttributeTagHelper.cs (1)
13
output.
Attributes
.Add(new TagHelperAttribute("processed"));
TagHelpers\ATagHelper.cs (3)
34
var methodParameters = output.
Attributes
.ToDictionary(attribute => attribute.Name,
39
output.
Attributes
.Clear();
42
output.
Attributes
.SetAttribute("href", urlHelper.Action(Action, Controller, methodParameters));
TagHelpers\BoldTagHelper.cs (1)
21
output.
Attributes
.RemoveAll("bold");
TagHelpers\PrettyTagHelper.cs (1)
54
output.
Attributes
.SetAttribute("style", style + prettyStyle);