Closed Bug 300609 Opened 19 years ago Closed 19 years ago

wrong result of index() function when hit <trigger appearance="minimal"> inside <repeat>

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: spsh, Assigned: allan)

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8b2) Gecko/20050706 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8b2) Gecko/20050706 Firefox/1.0+

index() function not works properly when used in trigger with
appearance="minimal" inside repeat construction. It always return '1'.

Reproducible: Always

Steps to Reproduce:
1. Open attached sample in browser.
2. Hit on button 2 and close dialog box
3. Hit on label 2 and close dialog box

Actual Results:  
First dialog box show 2 and second dialog box show 1

Expected Results:  
Both dialog box should show 2

I use Mozilla XForms 0.2
Attached file Test case for this bug
Keywords: testcase
Confirmed. I wonder why...
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #189170 - Attachment mime type: application/xml → application/xhtml+xml
(In reply to comment #2)
> Confirmed. I wonder why...

I think the reason is that the minimal trigger does not get focussed when you
click on it -> the repeat row does not get focus either -> the index is not changed

I guess all triggers should either get focus or not, but giving focus to a
<span> (which the minimal trigger is)?
Attached patch PatchSplinter Review
Sets tabindex="0" for minimal trigger so it is focusable, and you can tab your
way to it, which makes sense for triggers IMHO.
Assignee: aaronr → allan
Status: NEW → ASSIGNED
Attachment #192081 - Flags: review?(smaug)
Attachment #192081 - Flags: review?(smaug)
Attachment #192081 - Flags: review?(doronr)
Attachment #192081 - Flags: review+
Attachment #192081 - Flags: review?(doronr) → review+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
OS: Windows Server 2003 → All
Hardware: PC → All
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: