Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
javascript
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Nov 2011 at 20:14 UTC
Updated:
29 Jul 2014 at 20:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Everett Zufelt commentedThis is supported by at least one piece of assistive technology, NVDA 2011.2 ( http://www.nvda-project.org/releaseChanges/nvda_2011.3rc1_changes.html )
Comment #2
Everett Zufelt commentedComment #3
Everett Zufelt commentedThis patch ads the aria-sort attribute to the table header cell of the currently sorted column.
I'm not sure if inline documentation is required, thoughts?
Comment #4
Everett Zufelt commentedRemoved unnecessary variable initialization.
Comment #5
mgiffordPatch applies nicely. I need to re-install D8 though to review the effect.
Comment #6
mgiffordOk, after getting D8 again, I can confirm that this works as expected and have included a screenshot with a firebug view.
Comment #7
ksenzeeI think this needs a code comment, since most people won't understand what "aria-sort" is or does.
Comment #8
Everett Zufelt commented@ksenzee
Can you point me to any documentation standards for inline comments of this type? If they exist. I would assume that a URL for the definition in the WAI-ARIA spec would be useful.
Perhaps (obviously only 80 chars / line):
// aria-sort is a WAI-ARIA property that Indicates if items in a table or grid are sorted in ascending or descending order. See http://www.w3.org/TR/wai-aria/states_and_properties#aria-sort
Comment #9
ksenzeeYes, that's just the kind of thing I had in mind.
Comment #10
Everett Zufelt commentedAdded inline comment.
Comment #11
bdone commentedI've tested and confirmed that patch #10 adds the WAI-ARIA attribute and comment to core/includes/tablesort.inc.
But, the casing of "Indicates" should be changed to "indicates".
After that's fixed, it should be marked RTBC, in my opinion.
Comment #12
bdone commentedUpdating status, for the casing in comment #11
Comment #13
Everett Zufelt commentedCorrected code comment as per #11
Comment #14
Everett Zufelt commentedI'm not in support of backporting to D7.
- This is a markup change.
- This invalidates xhtml 1.0 pages.
Comment #15
Bojhan commentedBack to RTBC per #11.
Comment #17
Everett Zufelt commentedNot sure why that won't apply, but this should work.
Comment #18
Bojhan commentedComment #19
dries commentedCommitted to 8.x. Marking 'fixed'.