-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add title attributes to all items in the repo list viewer #6258
Add title attributes to all items in the repo list viewer #6258
Conversation
Signed-off-by: jolheiser <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #6258 +/- ##
=========================================
Coverage ? 38.87%
=========================================
Files ? 365
Lines ? 51341
Branches ? 0
=========================================
Hits ? 19959
Misses ? 28509
Partials ? 2873 Continue to review full report at Codecov.
|
I noticed that github put full (multiline) commit message into title="" on the same screen... But I'm not sure if this time we want to have this one too... Might be a little waste of bandwith. |
Counting this as ready for review. More enhancements could be made down the road if wanted/needed. |
@@ -65,7 +65,7 @@ | |||
{{$subJumpablePathName := $entry.GetSubJumpablePathName}} | |||
{{$subJumpablePath := SubJumpablePath $subJumpablePathName}} | |||
<span class="octicon octicon-file-directory"></span> | |||
<a href="{{EscapePound $.TreeLink}}/{{EscapePound $subJumpablePathName}}"> | |||
<a href="{{EscapePound $.TreeLink}}/{{EscapePound $subJumpablePathName}}" title="{{$subJumpablePathName}}"> |
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.
maybe still EscapePound
?
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.
Since this is the title, I don't think it needs to be escaped since EscapePound
is for URLs , right?
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.
The template library should automatically ensure that the {{$subJumpablePathName}}
is appropriately encoded for attributes.
I wonder if this should be backported to 1.8? |
Resolves #6256
Leaving as a draft for now, going to see if there are more places this should be done as well.