87 references to HtmlAttributeValueStyle
Microsoft.AspNetCore.Mvc.Razor (4)
RazorPageBase.cs (4)
576
/// <param name="attributeValueStyle">The <see cref="
HtmlAttributeValueStyle
"/>.</param>
581
HtmlAttributeValueStyle
attributeValueStyle)
817
HtmlAttributeValueStyle
attributeValueStyle)
833
public
HtmlAttributeValueStyle
AttributeValueStyle { get; }
Microsoft.AspNetCore.Mvc.Razor.Test (21)
RazorPageTest.cs (14)
990
page.BeginAddHtmlAttributeValues(executionContext, "someattr", 1,
HtmlAttributeValueStyle
.SingleQuotes);
1000
Assert.Equal(
HtmlAttributeValueStyle
.SingleQuotes, htmlAttribute.ValueStyle);
1007
Assert.Equal(
HtmlAttributeValueStyle
.SingleQuotes, allAttribute.ValueStyle);
1032
page.BeginAddHtmlAttributeValues(executionContext, "someattr", attributeValues.Length,
HtmlAttributeValueStyle
.SingleQuotes);
1045
Assert.Equal(
HtmlAttributeValueStyle
.SingleQuotes, htmlAttribute.ValueStyle);
1052
Assert.Equal(
HtmlAttributeValueStyle
.SingleQuotes, allAttribute.ValueStyle);
1078
page.BeginAddHtmlAttributeValues(executionContext, "someattr", attributeValues.Length,
HtmlAttributeValueStyle
.SingleQuotes);
1091
Assert.Equal(
HtmlAttributeValueStyle
.SingleQuotes, htmlAttribute.ValueStyle);
1098
Assert.Equal(
HtmlAttributeValueStyle
.SingleQuotes, allAttribute.ValueStyle);
1121
page.BeginAddHtmlAttributeValues(executionContext, "someattr", 1,
HtmlAttributeValueStyle
.DoubleQuotes);
1132
Assert.Equal(
HtmlAttributeValueStyle
.DoubleQuotes, attribute.ValueStyle);
1151
page.BeginAddHtmlAttributeValues(executionContext, "someattr", 1,
HtmlAttributeValueStyle
.NoQuotes);
1160
Assert.Equal(
HtmlAttributeValueStyle
.NoQuotes, htmlAttribute.ValueStyle);
1165
Assert.Equal(
HtmlAttributeValueStyle
.NoQuotes, allAttribute.ValueStyle);
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
31
(attributeX.ValueStyle ==
HtmlAttributeValueStyle
.Minimized ||
TagHelpers\UrlResolutionTagHelperTest.cs (6)
133
Assert.Equal(
HtmlAttributeValueStyle
.DoubleQuotes, attribute.ValueStyle);
193
Assert.Equal(
HtmlAttributeValueStyle
.DoubleQuotes, attribute.ValueStyle);
251
Assert.Equal(
HtmlAttributeValueStyle
.DoubleQuotes, attribute.ValueStyle);
307
Assert.Equal(
HtmlAttributeValueStyle
.DoubleQuotes, attribute.ValueStyle);
337
Assert.Equal(
HtmlAttributeValueStyle
.DoubleQuotes, attribute.ValueStyle);
433
Assert.Equal(
HtmlAttributeValueStyle
.DoubleQuotes, attribute.ValueStyle);
Microsoft.AspNetCore.Mvc.TagHelpers (4)
ScriptTagHelper.cs (4)
396
WriteVersionedSrc(SrcAttributeName, src,
HtmlAttributeValueStyle
.DoubleQuotes, StringWriter);
435
HtmlAttributeValueStyle
valueStyle,
448
HtmlAttributeValueStyle
valueStyle,
505
AppendVersionedSrc(SrcAttributeName, src,
HtmlAttributeValueStyle
.DoubleQuotes, builder);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (13)
LinkTagHelperTest.cs (4)
664
{ new TagHelperAttribute("encoded", new HtmlString("contains \"quotes\""),
HtmlAttributeValueStyle
.SingleQuotes) },
667
{ new TagHelperAttribute("mixed", mixed,
HtmlAttributeValueStyle
.SingleQuotes) },
673
{ new TagHelperAttribute("encoded", new HtmlString("contains \"quotes\""),
HtmlAttributeValueStyle
.SingleQuotes) },
675
{ new TagHelperAttribute("mixed", mixed,
HtmlAttributeValueStyle
.SingleQuotes) },
ScriptTagHelperTest.cs (8)
582
{ new TagHelperAttribute("encoded", new HtmlString("contains \"quotes\""),
HtmlAttributeValueStyle
.SingleQuotes) },
584
{ new TagHelperAttribute("mixed", mixed,
HtmlAttributeValueStyle
.SingleQuotes) },
591
{ new TagHelperAttribute("encoded", new HtmlString("contains \"quotes\""),
HtmlAttributeValueStyle
.SingleQuotes) },
593
{ new TagHelperAttribute("mixed", mixed,
HtmlAttributeValueStyle
.SingleQuotes) },
921
{ new TagHelperAttribute("encoded", new HtmlString("contains \"quotes\""),
HtmlAttributeValueStyle
.SingleQuotes) },
923
{ new TagHelperAttribute("mixed", mixed,
HtmlAttributeValueStyle
.SingleQuotes) },
930
{ new TagHelperAttribute("encoded", new HtmlString("contains \"quotes\""),
HtmlAttributeValueStyle
.SingleQuotes) },
932
{ new TagHelperAttribute("mixed", mixed,
HtmlAttributeValueStyle
.SingleQuotes) },
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
31
(attributeX.ValueStyle ==
HtmlAttributeValueStyle
.Minimized ||
Microsoft.AspNetCore.Razor (19)
TagHelpers\TagHelperAttribute.cs (19)
16
/// <see cref="ValueStyle"/> is set to <see cref="
HtmlAttributeValueStyle
.Minimized"/> and <see cref="Value"/> to
21
: this(name, value: null, valueStyle:
HtmlAttributeValueStyle
.Minimized)
27
/// and <paramref name="value"/>. <see cref="ValueStyle"/> is set to <see cref="
HtmlAttributeValueStyle
.DoubleQuotes"/>.
32
: this(name, value, valueStyle:
HtmlAttributeValueStyle
.DoubleQuotes)
43
/// <remarks>If <paramref name="valueStyle"/> is <see cref="
HtmlAttributeValueStyle
.Minimized"/>,
45
public TagHelperAttribute(string name, object value,
HtmlAttributeValueStyle
valueStyle)
67
public
HtmlAttributeValueStyle
ValueStyle { get; }
77
(ValueStyle ==
HtmlAttributeValueStyle
.Minimized || Equals(Value, other.Value));
88
if (ValueStyle ==
HtmlAttributeValueStyle
.Minimized)
123
if (ValueStyle ==
HtmlAttributeValueStyle
.Minimized)
168
if (ValueStyle ==
HtmlAttributeValueStyle
.Minimized)
220
if (ValueStyle !=
HtmlAttributeValueStyle
.Minimized)
230
private static string GetAttributeValuePrefix(
HtmlAttributeValueStyle
valueStyle)
234
case
HtmlAttributeValueStyle
.DoubleQuotes:
236
case
HtmlAttributeValueStyle
.SingleQuotes:
238
case
HtmlAttributeValueStyle
.NoQuotes:
245
private static string GetAttributeValueSuffix(
HtmlAttributeValueStyle
valueStyle)
249
case
HtmlAttributeValueStyle
.DoubleQuotes:
251
case
HtmlAttributeValueStyle
.SingleQuotes:
Microsoft.AspNetCore.Razor.Runtime (2)
Runtime\TagHelpers\TagHelperExecutionContext.cs (2)
123
public void AddHtmlAttribute(string name, object value,
HtmlAttributeValueStyle
valueStyle)
149
public void AddTagHelperAttribute(string name, object value,
HtmlAttributeValueStyle
valueStyle)
Microsoft.AspNetCore.Razor.Runtime.Test (18)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (14)
456
expectedAttributes.Add(new TagHelperAttribute("type", "text",
HtmlAttributeValueStyle
.SingleQuotes));
459
executionContext.AddHtmlAttribute("class", "btn",
HtmlAttributeValueStyle
.DoubleQuotes);
460
executionContext.AddHtmlAttribute("type", "text",
HtmlAttributeValueStyle
.SingleQuotes);
503
expectedAttributes.Add(new TagHelperAttribute("valid", "true",
HtmlAttributeValueStyle
.NoQuotes));
504
expectedAttributes.Add(new TagHelperAttribute("type", "text",
HtmlAttributeValueStyle
.SingleQuotes));
509
executionContext.AddHtmlAttribute("class", "btn",
HtmlAttributeValueStyle
.DoubleQuotes);
510
executionContext.AddHtmlAttribute("foo", "bar",
HtmlAttributeValueStyle
.DoubleQuotes);
511
executionContext.AddHtmlAttribute("valid", "true",
HtmlAttributeValueStyle
.NoQuotes);
512
executionContext.AddHtmlAttribute("type", "text",
HtmlAttributeValueStyle
.SingleQuotes);
533
expectedAttributes.Add(new TagHelperAttribute("something", true,
HtmlAttributeValueStyle
.SingleQuotes));
534
expectedAttributes.Add(new TagHelperAttribute("type", "text",
HtmlAttributeValueStyle
.NoQuotes));
537
executionContext.AddHtmlAttribute("class", "btn",
HtmlAttributeValueStyle
.DoubleQuotes);
538
executionContext.AddTagHelperAttribute("something", true,
HtmlAttributeValueStyle
.SingleQuotes);
539
executionContext.AddHtmlAttribute("type", "text",
HtmlAttributeValueStyle
.NoQuotes);
Runtime\TagHelpers\TagHelperRunnerTest.cs (3)
123
executionContext.AddTagHelperAttribute("foo", true,
HtmlAttributeValueStyle
.DoubleQuotes);
161
executionContext.AddHtmlAttribute("class", "btn",
HtmlAttributeValueStyle
.DoubleQuotes);
182
executionContext.AddTagHelperAttribute("foo", true,
HtmlAttributeValueStyle
.DoubleQuotes);
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
31
(attributeX.ValueStyle ==
HtmlAttributeValueStyle
.Minimized ||
Microsoft.AspNetCore.Razor.Test (6)
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
31
(attributeX.ValueStyle ==
HtmlAttributeValueStyle
.Minimized ||
TagHelpers\TagHelperOutputTest.cs (5)
479
{ new TagHelperAttribute("test", "testVal",
HtmlAttributeValueStyle
.NoQuotes) },
480
{ new TagHelperAttribute("something", " spaced ",
HtmlAttributeValueStyle
.SingleQuotes) },
543
new TagHelperAttribute("last", "unminimized",
HtmlAttributeValueStyle
.NoQuotes),
586
{ new TagHelperAttribute("test", "testVal",
HtmlAttributeValueStyle
.SingleQuotes) }
797
{ new TagHelperAttribute("test", "testVal",
HtmlAttributeValueStyle
.SingleQuotes) }