Closed Bug 501659 Opened 15 years ago Closed 15 years ago

HTML table's isRowSelected/isColumnSelected shouldn't fail if row or column has cell holes

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta2-fixed

People

(Reporter: surkov, Assigned: surkov)

References

(Blocks 1 open bug)

Details

(Keywords: access, verified1.9.2)

Attachments

(1 file)

      No description provided.
Attached patch patchSplinter Review
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #406648 - Flags: review?(bolterbugz)
Comment on attachment 406648 [details] [diff] [review]
patch

r=me with nits:

>+  return (row == -1 || *aColumn == -1) ? NS_ERROR_INVALID_ARG : NS_OK;

Why not check for < 0?

> NS_IMETHODIMP
> nsHTMLTableAccessible::IsCellSelected(PRInt32 aRow, PRInt32 aColumn,
>                                       PRBool *aIsSelected)
> {

<snip>

>   return rv;

Probably want to return NS_OK here too.

>+      // table instane

Nit: typo (-t)  :)
Attachment #406648 - Flags: review?(bolterbugz) → review+
(In reply to comment #2)
> (From update of attachment 406648 [details] [diff] [review])
> r=me with nits:
> 
> >+  return (row == -1 || *aColumn == -1) ? NS_ERROR_INVALID_ARG : NS_OK;
> 
> Why not check for < 0?

if you prefer :) They are initialized by -1. They can be non negative or -1. No other values.
landed on 1.9.3 - http://hg.mozilla.org/mozilla-central/rev/b6ce00fade5e
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Do we need this one for our tables for 3.6 round?
Comment on attachment 406648 [details] [diff] [review]
patch

(In reply to comment #5)
> Do we need this one for our tables for 3.6 round?

Definitely. We want to have all table-related work on 1.9.2
Attachment #406648 - Flags: approval1.9.2?
Flags: in-testsuite+
Comment on attachment 406648 [details] [diff] [review]
patch

a192=beltzner
Attachment #406648 - Flags: approval1.9.2? → approval1.9.2+
Verified fixed in Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2b2pre) Gecko/20091029 Namoroka/3.6b2pre (.NET CLR 3.5.30729)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: