Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Add srcset to list of application relative resolvable URLs. #2970

Merged
merged 1 commit into from
Aug 14, 2015

Conversation

NTaylorMullen
Copy link
Contributor

@NTaylorMullen
Copy link
Contributor Author

/cc @ajaybhargavb @dougbu

<track src="/email~/SomeUrl">
</audio>
<embed src="/email@dyanmicUrl">
<iframe src="/SomeUrl" />
<img src="/~/SomeUrl">
<img src="/~/SomeUrl" srcset="/~/SomeUrl">
Copy link
Member

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?

Copy link
Member

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.

Copy link
Contributor Author

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">

Copy link
Member

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.

Copy link
Contributor Author

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 ~/ 😄.

@dougbu
Copy link
Member

dougbu commented Aug 14, 2015

@NTaylorMullen
Copy link
Contributor Author

Updated.

<track src="~/email@(dynamicUrl)">
</audio>
<embed src="~/email@dyanmicUrl">
<iframe src=@(dynamicUrl) />
<img src="~/@dynamicUrl">
<img src="~/@Model.Name" srcset="~/@Model.Name">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx

@dougbu
Copy link
Member

dougbu commented Aug 14, 2015

:shipit:

- Now allow the attribute to exist on `img` and `source` tags.
- Updated existing `UrlResolutionTagHelper` functional test to validate `srcset` attribute.

#2964
@NTaylorMullen NTaylorMullen merged commit e73e73a into dev Aug 14, 2015
@NTaylorMullen NTaylorMullen deleted the nimullen/srcset.2964 branch August 14, 2015 23:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants