Skip to content

GitHub: Remove table-related roles from release asset links#28

Closed
jscholes wants to merge 1 commit intojcsteh:masterfrom
jscholes:github-release-asset-link-fix
Closed

GitHub: Remove table-related roles from release asset links#28
jscholes wants to merge 1 commit intojcsteh:masterfrom
jscholes:github-release-asset-link-fix

Conversation

@jscholes
Copy link
Copy Markdown

Example page: https://github.com/aome510/spotify-player/releases (under the "v0.18.2" and then "Assets".

@jscholes
Copy link
Copy Markdown
Author

@jcsteh I may've been a bit hasty with this one. It occurred to me that the script's own transformation of issues lists into tables may be causing this problem, rather than it being a GitHub thing. I'll look at it again when I'm back at my computer.

@jscholes
Copy link
Copy Markdown
Author

@jcsteh Confirmed. The "row" and "cell" roles are being applied by the userscript, but the wrapping <ul> for release assets doesn't get role="table" because it doesn't match the relevant selector.

I think having release assets actually be in a table would be useful, but looking into that will be more than the quick fix I was expecting. Would you prefer for this PR to be closed in favour of a new one, if/when I have the time to look at it again?

@jcsteh
Copy link
Copy Markdown
Owner

jcsteh commented Jun 30, 2024

Oof. This is nastier still because the links end up getting a role of cell. That said, I think this fix could be fragile given that we're effectively undoing something we did, so I do think it needs another solution. Thanks for the contribution though.

@jcsteh jcsteh closed this Jun 30, 2024
jcsteh added a commit that referenced this pull request Jun 30, 2024
It would be ideal if this were a table, but we're not currently matching the table correctly and we're breaking the links by giving them a role of cell.
For now, just don't mess with it until we have a better solution.
Re #28.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants