-
Notifications
You must be signed in to change notification settings - Fork 9
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
Spec format: Add anchors/link to table rows? #102
Comments
Something is broken in aria-common/script/mapping-tables.js - if you could take a look and work out what is wrong it would unbreak a lot of specs which seem broken right now. What is meant to happen (I think) is that the id's which are on the table version are meant to get used on the summary version and the id's on the table should then be removed. |
Oh interesting.. and yes I can look into it! How many specs use aria-common/script/mapping-tables.js? Do they all separately need a fix or is there an upstream somewhere? |
All the AAMs (core-aam, html-aam, dpub-aam etc.) use it and it lives in the aria-common repository. I'd recommend testing fixes in core-aam and then checking the changes into aria-common. |
a few more details:
In the published document similar things happen but the problem is that the ids are no longer on the table so the mappingTableInfos array is empty, then when the table gets rendered. IMO we need to either
|
It's correct that ReSpec no longer publishes its internal events. We have a few options:
Either option would give you the ability to manipulate the document... but option 1 might be nice is the end result means no additional JS ends up on static document. Let me know how you want to proceed... option 1 should be pretty easy to code up, but I'm traveling this week so would be something I could may do next week (unless someone else wants to have a go at coding it). |
I think I like option 1 more, @marcoscaceres, if you would like to implement it! Also I'm realizing my concern for the lack of ids was actually part of my wish for a self link by each summary element -- @jnurthen what do you think about a self self-links like the ones to the left of the section headers? What if I added one to each role? Options:
|
Making the text within the summary a link, or including a link in the summary will introduce the peculiar nature of summary allowing links to our specifications (per all our recent talking on the ARIA WG about this exact problem). My vote would be for the self link to not be included in the summary element. |
@marcoscaceres @spectranaut I see benefits to both options:
|
@scottaohara yeah it is funny that we have been talking about it so much, but I thought the idea was that people did this so we need to support it. But if screen readers can't handle it right now then it doesn't make sense to put the link in the summary. What about a self link to the right or left of the summary? :) |
yes, left or right of the summary would be fine imo. edit: and to clarify, yes, we definitely do want to figure out how to support this in some way. but since it has known issues now, i'm just saying i'd rather us not do something we know to be quirky until we can find a fix for said quirk. |
Hey all I just thought I'd take a look at this and implement on of the solutions discussed above -- but I can't replicate the error locally. The github page's published version of this doc does not have the Also, how does removeOnSave work? Under what condition are those things removed? I wanted to be able to test that scenario too. |
I think everything with removeOnSave should be removed from the saved document When I looked at this previously the issue was that mapping-tables.js moves the ids from the table to the summary/details structure. I believe that when @michael-n-cooper creates new versions of this document he has previously switched back to the tabular version before saving the document from the respec pill (at the top right), but if he forgets then the ids don't get saved (as summary/details has removeOnSave AND the script expects the ids on the table anyway) We need to fix this as we need to get to the point where we can auto-publish this document rather than relying on manual steps for publication. I believe I coded something that fixed this in a5323e4 but didn't get round to fully testing it (and moving the code to aria-common where it should be) |
It's funny @jnurthen I did almost the exact change when looking around at the code yesterday, so i just opened a PR with my branch (https://github.com/w3c/core-aam/pull/105/files) so we can discuss further there? |
Is it possible that this issue is still happening? I don't see an easy way of creating an URL that contains the id of the fragment I'd like the page to scroll to upon loading. I can do it by going to the DevTools, getting the id of the element I want to scroll to and then manually modifying the URL to include it, but that's not really user friendly 🥲 More specifically, I'd like to be able to copy URL with fragment for specific attributes (e.g.: https://www.w3.org/TR/core-aam-1.2/#ariaErrorMessage), the same way I can do it for sections such as https://www.w3.org/TR/core-aam-1.2/#mapping_state-property. From the issue title and description, it sounds like this is the same issue... but feel free to let me know if I'm mistaken! |
Not the same issue but I have filed this against aria-common |
The removal of the giant mapping table/summary details has achieved this! |
I have wanted to link to specific items in the Role Mapping, State and Property Mapping Table or State and Property Change Events multiple times. But, it's not clear how to do this, because there is a table AND a list of summary items in the DOM, one of which is displayed and one of which is hidden, so you can't have the same id on same content in both places.
Has anyone thought about how they might do this before? I'm happy to look into it and suggest a solution but I just wanted to see if anyone already had ideas.
I'm also curious, why do we have both the table and summary view of these items? Do we know that both are used, or whether one is better?
The text was updated successfully, but these errors were encountered: