Skip to content
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

Adds support for headers html attribute #2526

Closed
wants to merge 1 commit into from

Conversation

ChrisBland
Copy link

Currently 'headers' is not a supported HTML attribute for React. For any table that has multiple column headers, screen readers are not able to process the headers without the 'headers' attribute.

This technique is used when data cells are associated with more than one row and/or one column header. This allows screen readers to speak the headers associated with each data cell when the relationships are too complex to be identified using the th element alone or the th element with the scope attribute. Using this technique also makes these complex relationships perceivable when the presentation format changes.

http://www.w3.org/TR/WCAG20-TECHS/H43.html

…nd headers attributes to associate data cells with header cells in data tables
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@syranide
Copy link
Contributor

IE8 says:

> document.createElement('th').headers
  ""

So all good it seems 👍

@ChrisBland
Copy link
Author

This fixes issue #2516.

@zpao
Copy link
Member

zpao commented Nov 26, 2014

Sorry I missed that this came in before #2553 and just merged that instead. Thanks for the PR though and hopefully we'll see some more :)

@zpao zpao closed this Nov 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants