Opened 11 years ago
Closed 10 years ago
#11387 closed Bug (fixed)
role="radiogroup" should be applied only to radio inputs' container.
Reported by: | Irina | Owned by: | Marek Lewandowski |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.4.2 |
Component: | Accessibility | Version: | 4.0 |
Keywords: | IBM | Cc: | Teresa Monahan, Satya Minnekanti, peter |
Description
To Reproduce:
- Open any CKEditor sample in FF.
- Open any dialog that has input fields, e.g. insert table dialog
- Inspect input fields ( e.g. rows) using Firebug
Problem: Each inputs' container has a role="radiogroup"
Elements that use 'role' must contain required child elements for the role to enable compatibility with assistive technologies, e.g.
<div role="radiogroup"> <div role="radio">radio element markup</div> </div>
Change History (8)
comment:1 Changed 11 years ago by
Component: | General → Accessibility |
---|---|
Status: | new → confirmed |
Version: | 4.3.1 → 4.0 |
comment:2 Changed 10 years ago by
Owner: | set to Marek Lewandowski |
---|---|
Status: | confirmed → review |
That's correct, attr [role="radiogroup"]
should not be used here. This layer is used simply as a wrapper. I've also noticed that it reuses the same label as in contained input, which also is invalid.
As a result I changed the role to presentation, and removed redundant label.
Pushed to t/11387 at dev.
comment:3 Changed 10 years ago by
Status: | review → review_failed |
---|
Well, we should first check why the attribute was added there. I agree it looks odd there, but there might be a reason. Blame leads me to #10866. Please verify it.
comment:4 Changed 10 years ago by
Status: | review_failed → review |
---|
I've talked with Fred and change had solely semantic purpose, since it doesn't affect JAWS. I've added the option to specify role in elementDefinition
passed to CKEDITOR.ui.dialog.labeledElement
, same applies to label. Both options are documented.
Pushed to t/11387 at dev and t/11387 at tests.
comment:6 Changed 10 years ago by
Status: | review → review_passed |
---|
I pushed a commit https://github.com/cksource/ckeditor-dev/commit/2e2e9484bf97332c32f93071bef332f14679873e that replaces RegExp-based assertions with DOM-based ones, which are much safer and straightforward.
comment:7 Changed 10 years ago by
Milestone: | → CKEditor 4.4.2 |
---|
comment:8 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed on master with git:2974078.
Looking at below links:
I agree that this role should not be used on inputs as it doesn't fit to WAI definition at all.