@@ -21,35 +21,35 @@ namespace Microsoft.AspNetCore.Mvc.Razor.TagHelpers
21
21
/// <remarks>Resolves URLs starting with '~/' (relative to the application's 'webroot' setting) that are not
22
22
/// targeted by other <see cref="ITagHelper"/>s. Runs prior to other <see cref="ITagHelper"/>s to ensure
23
23
/// application-relative URLs are resolved.</remarks>
24
- [ HtmlTargetElement ( "*" , Attributes = "itemid" ) ]
25
- [ HtmlTargetElement ( "a" , Attributes = "href" ) ]
26
- [ HtmlTargetElement ( "applet" , Attributes = "archive" ) ]
27
- [ HtmlTargetElement ( "area" , Attributes = "href" , TagStructure = TagStructure . WithoutEndTag ) ]
28
- [ HtmlTargetElement ( "audio" , Attributes = "src" ) ]
29
- [ HtmlTargetElement ( "base" , Attributes = "href" , TagStructure = TagStructure . WithoutEndTag ) ]
30
- [ HtmlTargetElement ( "blockquote" , Attributes = "cite" ) ]
31
- [ HtmlTargetElement ( "button" , Attributes = "formaction" ) ]
32
- [ HtmlTargetElement ( "del" , Attributes = "cite" ) ]
33
- [ HtmlTargetElement ( "embed" , Attributes = "src" , TagStructure = TagStructure . WithoutEndTag ) ]
34
- [ HtmlTargetElement ( "form" , Attributes = "action" ) ]
35
- [ HtmlTargetElement ( "html" , Attributes = "manifest" ) ]
36
- [ HtmlTargetElement ( "iframe" , Attributes = "src" ) ]
37
- [ HtmlTargetElement ( "img" , Attributes = "src" , TagStructure = TagStructure . WithoutEndTag ) ]
38
- [ HtmlTargetElement ( "img" , Attributes = "srcset" , TagStructure = TagStructure . WithoutEndTag ) ]
39
- [ HtmlTargetElement ( "input" , Attributes = "src" , TagStructure = TagStructure . WithoutEndTag ) ]
40
- [ HtmlTargetElement ( "input" , Attributes = "formaction" , TagStructure = TagStructure . WithoutEndTag ) ]
41
- [ HtmlTargetElement ( "ins" , Attributes = "cite" ) ]
42
- [ HtmlTargetElement ( "link" , Attributes = "href" , TagStructure = TagStructure . WithoutEndTag ) ]
43
- [ HtmlTargetElement ( "menuitem" , Attributes = "icon" ) ]
44
- [ HtmlTargetElement ( "object" , Attributes = "archive" ) ]
45
- [ HtmlTargetElement ( "object" , Attributes = "data" ) ]
46
- [ HtmlTargetElement ( "q" , Attributes = "cite" ) ]
47
- [ HtmlTargetElement ( "script" , Attributes = "src" ) ]
48
- [ HtmlTargetElement ( "source" , Attributes = "src" , TagStructure = TagStructure . WithoutEndTag ) ]
49
- [ HtmlTargetElement ( "source" , Attributes = "srcset" , TagStructure = TagStructure . WithoutEndTag ) ]
50
- [ HtmlTargetElement ( "track" , Attributes = "src" , TagStructure = TagStructure . WithoutEndTag ) ]
51
- [ HtmlTargetElement ( "video" , Attributes = "src" ) ]
52
- [ HtmlTargetElement ( "video" , Attributes = "poster" ) ]
24
+ [ HtmlTargetElement ( "*" , Attributes = "[ itemid^='~/'] " ) ]
25
+ [ HtmlTargetElement ( "a" , Attributes = "[ href^='~/'] " ) ]
26
+ [ HtmlTargetElement ( "applet" , Attributes = "[ archive^='~/'] " ) ]
27
+ [ HtmlTargetElement ( "area" , Attributes = "[ href^='~/'] " , TagStructure = TagStructure . WithoutEndTag ) ]
28
+ [ HtmlTargetElement ( "audio" , Attributes = "[ src^='~/'] " ) ]
29
+ [ HtmlTargetElement ( "base" , Attributes = "[ href^='~/'] " , TagStructure = TagStructure . WithoutEndTag ) ]
30
+ [ HtmlTargetElement ( "blockquote" , Attributes = "[ cite^='~/'] " ) ]
31
+ [ HtmlTargetElement ( "button" , Attributes = "[ formaction^='~/'] " ) ]
32
+ [ HtmlTargetElement ( "del" , Attributes = "[ cite^='~/'] " ) ]
33
+ [ HtmlTargetElement ( "embed" , Attributes = "[ src^='~/'] " , TagStructure = TagStructure . WithoutEndTag ) ]
34
+ [ HtmlTargetElement ( "form" , Attributes = "[ action^='~/'] " ) ]
35
+ [ HtmlTargetElement ( "html" , Attributes = "[ manifest^='~/'] " ) ]
36
+ [ HtmlTargetElement ( "iframe" , Attributes = "[ src^='~/'] " ) ]
37
+ [ HtmlTargetElement ( "img" , Attributes = "[ src^='~/'] " , TagStructure = TagStructure . WithoutEndTag ) ]
38
+ [ HtmlTargetElement ( "img" , Attributes = "[ srcset^='~/'] " , TagStructure = TagStructure . WithoutEndTag ) ]
39
+ [ HtmlTargetElement ( "input" , Attributes = "[ src^='~/'] " , TagStructure = TagStructure . WithoutEndTag ) ]
40
+ [ HtmlTargetElement ( "input" , Attributes = "[ formaction^='~/'] " , TagStructure = TagStructure . WithoutEndTag ) ]
41
+ [ HtmlTargetElement ( "ins" , Attributes = "[ cite^='~/'] " ) ]
42
+ [ HtmlTargetElement ( "link" , Attributes = "[ href^='~/'] " , TagStructure = TagStructure . WithoutEndTag ) ]
43
+ [ HtmlTargetElement ( "menuitem" , Attributes = "[ icon^='~/'] " ) ]
44
+ [ HtmlTargetElement ( "object" , Attributes = "[ archive^='~/'] " ) ]
45
+ [ HtmlTargetElement ( "object" , Attributes = "[ data^='~/'] " ) ]
46
+ [ HtmlTargetElement ( "q" , Attributes = "[ cite^='~/'] " ) ]
47
+ [ HtmlTargetElement ( "script" , Attributes = "[ src^='~/'] " ) ]
48
+ [ HtmlTargetElement ( "source" , Attributes = "[ src^='~/'] " , TagStructure = TagStructure . WithoutEndTag ) ]
49
+ [ HtmlTargetElement ( "source" , Attributes = "[ srcset^='~/'] " , TagStructure = TagStructure . WithoutEndTag ) ]
50
+ [ HtmlTargetElement ( "track" , Attributes = "[ src^='~/'] " , TagStructure = TagStructure . WithoutEndTag ) ]
51
+ [ HtmlTargetElement ( "video" , Attributes = "[ src^='~/'] " ) ]
52
+ [ HtmlTargetElement ( "video" , Attributes = "[ poster^='~/'] " ) ]
53
53
[ EditorBrowsable ( EditorBrowsableState . Never ) ]
54
54
public class UrlResolutionTagHelper : TagHelper
55
55
{
0 commit comments