-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add srcset
to list of application relative resolvable URLs.
#2970
Conversation
/cc @ajaybhargavb @dougbu |
<track src="/email~/SomeUrl"> | ||
</audio> | ||
<embed src="/email@dyanmicUrl"> | ||
<iframe src="/SomeUrl" /> | ||
<img src="/~/SomeUrl"> | ||
<img src="/~/SomeUrl" srcset="/~/SomeUrl"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh? Why is the ~
character not replaced here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Realize it's an existing issue but this looks all kind of wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not. The original source evaluated is: <img src="~/~/SomeUrl" srcset="~/~/SomeUrl">
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest two variables e.g. tildePath
and relativePath
to avoid this invalidity. Would still be testing the different code paths but without veering into something no user would do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👎
It's a functional test. We're purposefully doing things that user code wouldn't normally do; this file tries to do everything known to man for variations of ~/
😄.
⌚ |
4369922
to
b2125cb
Compare
Updated. |
<track src="~/email@(dynamicUrl)"> | ||
</audio> | ||
<embed src="~/email@dyanmicUrl"> | ||
<iframe src=@(dynamicUrl) /> | ||
<img src="~/@dynamicUrl"> | ||
<img src="~/@Model.Name" srcset="~/@Model.Name"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx
|
b2125cb
to
069395f
Compare
- Now allow the attribute to exist on `img` and `source` tags. - Updated existing `UrlResolutionTagHelper` functional test to validate `srcset` attribute. #2964
069395f
to
e73e73a
Compare
img
andsource
tags.UrlResolutionTagHelper
functional test to validatesrcset
attribute.srcset missing from ~ tag helper. #2964