Closed
Bug 474984
Opened 16 years ago
Closed 16 years ago
Move name calculation for GridCell element to new namerules infrastructure.
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: MarcoZ, Assigned: MarcoZ)
References
(Blocks 1 open bug)
Details
(Keywords: access)
Attachments
(1 file, 1 obsolete file)
3.79 KB,
patch
|
surkov
:
review+
|
Details | Diff | Splinter Review |
Spun off from bug 474281.
Assignee | ||
Comment 1•16 years ago
|
||
I have a feeling the test for the regular table cell isn't run, but am not certain. Alex, is this generally the right approach?
Assignee: nobody → marco.zehe
Status: NEW → ASSIGNED
Attachment #358395 -
Flags: review?(surkov.alexander)
Comment 2•16 years ago
|
||
Comment on attachment 358395 [details] [diff] [review] Patch Yes, generally this approach is correct. >+ <ruleset id="tablecell"> >+ <rule fromsubtree="false"/> >+ </ruleset> >+ >+ <ruleset id="gridcell"> >+ <rule fromsubtree="true"/> >+ </ruleset> You don't need to introduce new rules for this case, I guess it's correct to use "htmlelm" ruleset, because I believe html:td will get the name from ARIA attributes and from related html:label.
Comment 3•16 years ago
|
||
(In reply to comment #1) > Created an attachment (id=358395) [details] > Patch > > I have a feeling the test for the regular table cell isn't run, but am not > certain. If they are run then they should be listed in passed tests
Assignee | ||
Comment 4•16 years ago
|
||
(In reply to comment #2) > >+ <ruleset id="tablecell"> > >+ <rule fromsubtree="false"/> > >+ </ruleset> > >+ > >+ <ruleset id="gridcell"> > >+ <rule fromsubtree="true"/> > >+ </ruleset> > > You don't need to introduce new rules for this case, I guess it's correct to > use "htmlelm" ruleset, because I believe html:td will get the name from ARIA > attributes and from related html:label. I tried that, and when I do the regular table with the htmlelm ruleset, I get this output: 305 INFO TEST-PASS | chrome://mochikit/content/a11y/accessible/test_name_markup.html | Attribute 'aria-label' test. Wrong name of the accessible for [object HTMLTableCellElement] 306 ERROR TEST-UNEXPECTED-FAIL | chrome://mochikit/content/a11y/accessible/test_name_markup.html | Error thrown during test: attrValue is null - got 0, expected 1 And for the gridcell, I definitely need something to check the rule fromsubtree, and htmlelm doesn't include that.
Comment 5•16 years ago
|
||
> I tried that, and when I do the regular table with the htmlelm ruleset, I get > this output: > > 305 INFO TEST-PASS | I guess it's because you didn't add aria-label attirubte and other stuffs :) > And for the gridcell, I definitely need something to check the rule > fromsubtree, and htmlelm doesn't include that. htmlctrl should work for gridcell
Assignee | ||
Comment 6•16 years ago
|
||
Working tests.
Attachment #358395 -
Attachment is obsolete: true
Attachment #358418 -
Flags: review?(surkov.alexander)
Attachment #358395 -
Flags: review?(surkov.alexander)
Comment 7•16 years ago
|
||
Comment on attachment 358418 [details] [diff] [review] Patch2 >+ >+ <ruleset id="gridcell"> >+ <ruleset ref="htmlelm"/> >+ <rule fromsubtree="true"/> >+ </ruleset> honestly, it's a bit strange it's working because order of rule elements is important and algorithm should check name from @title before subtree name. I'll try to look here deeply. But any way it's correct to use "htmlctrl" ruleset here. r=me with the change.
Attachment #358418 -
Flags: review?(surkov.alexander) → review+
Assignee | ||
Comment 8•16 years ago
|
||
Pushed in changeset: http://hg.mozilla.org/mozilla-central/rev/537af42cc65a
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 9•16 years ago
|
||
(In reply to comment #7) > honestly, it's a bit strange it's working because order of rule elements is > important and algorithm should check name from @title before subtree name. I'll > try to look here deeply. But any way it's correct to use "htmlctrl" ruleset > here. All is ok, with gridcell ruleset I get an error not ok - Attribute 'title' test. Wrong name of the accessible for [object HTMLTableCellElement @ 0x61145f8 (native @ 0x4a88278)] got " This is a paragraph This is a link This is a list", expected "This is a paragraph This is a link This is a list"
Assignee | ||
Comment 10•16 years ago
|
||
Yes, I ran into that test failure as well when I swapped things around a bit there. But the way I checked it in finally turned out to not cause any oranges.
Comment 11•16 years ago
|
||
(In reply to comment #10) > But the way I checked it in finally turned out to not cause any oranges. Sure because you used "htmlctrl" ruleset :). Just comment #6 confused me and made me think there is error in logic of name calculation test.
You need to log in
before you can comment on or make changes to this bug.
Description
•