label with ref that uses relative xpath doesn't work in repeat

RESOLVED WONTFIX

Status

Core Graveyard
XForms
RESOLVED WONTFIX
11 years ago
11 months ago

People

(Reporter: Brad Clements, Unassigned)

Tracking

Trunk
x86
Windows XP

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(3 attachments)

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060410 Firefox/1.5.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060410 Firefox/1.5.0.2

In 0.5RC

Given an input element whose label uses a relative xpath, like

<xf:input ref="@selected">
 <xf:label ref="../@ordernumber" />
</xf:input>

This works outside of a repeat but fails in the repeat.


Reproducible: Always

Steps to Reproduce:
1. Load the test sample

Actual Results:  
No value is retrieved for the label

Expected Results:  
Label should have the correct value like it does outside of repeat.

Also the attached example shows another refresh issue in repeat.

The use of index() in a labels ref in the repeat causes strange behavoir and
page lockup. I realize that this use doesn't make sense and is incorrect,
but shouldn't cause layout issues.
(Reporter)

Comment 1

11 years ago
Created attachment 218093 [details]
Demonstrates relative ref problem in repeat

Comment 2

11 years ago
Created attachment 218095 [details]
simpler testcase

Comment 3

11 years ago
problem seems to be with the context node that label is getting when trying to bind.  In my simplified testcase, the context node coming back for the label is the <item>, not the @value of the <item>.

Updated

11 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 4

11 years ago
Created attachment 218151 [details]
Testcase

Yet another testcase. It seems like the problem is more refined, it's only when you use attributes that it fails. And Aaron is right, it uses the node, and not the attribute as the context node.

Updated

11 years ago
Assignee: aaronr → xforms

Comment 5

10 years ago
as far as I can tell, the label issue is gone in 0.7.  The refresh issue Brad noticed still exists, though.

Comment 6

10 years ago
(In reply to comment #5)
> The refresh issue Brad
> noticed still exists, though.
> 

Can it be related with bug 362308?
RIP xforms
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.