The <getter> and <setter> functions only work in the 1st binding

VERIFIED INVALID

Status

()

VERIFIED INVALID
17 years ago
17 years ago

People

(Reporter: wgrinfeld, Assigned: hyatt)

Tracking

Trunk
x86
Windows NT
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Reporter)

Description

17 years ago
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; Hotbar 2.0)
BuildID:    All versions

In case one has an html having elements bound to XBL id's, and 
if the used XBL element uses <getter> or <setter> functions against a 
<property> , then only the 1st html bound element can activate the relevant 
getter and setter functions.
See Testcase.


Reproducible: Always
Steps to Reproduce:
1.See Testcase
2.
3.

Actual Results:  See testcase

Expected Results:  the getter and setter functions should always get executed, 
not just for the first occurence of the bound element

This bug was originally reported as bug 98143, but as David Hyatt took 
exception to the provided testcase, it has been rewritten.
(Reporter)

Comment 1

17 years ago
Created attachment 48267 [details]
XBL demonstrating the bug (do not run this file - only view it)
(Reporter)

Comment 2

17 years ago
Created attachment 48268 [details]
CSS used in the testcase (do not run this file - only view it)
(Reporter)

Comment 3

17 years ago
Created attachment 48270 [details]
The Testcase: run this and push all buttons to see the bug
(Assignee)

Comment 4

17 years ago
You cannot mix a raw property value with a getter/setter.  A property is either
a field (defined using getter/setter) or it is a raw value.  It is not sensical
for it to be defined as both.  The getter has no way of referencing the raw
value that you're attempting to initialize the property with.  This is a
malformed XBL.

Remove the "null" raw value from the property definition and you'll see that
everything works fine.

This error illustrates that there should perhaps be a new tag introduced to
distinguish raw properties from getter/setter properties.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → INVALID
(Assignee)

Comment 5

17 years ago
Filed bug 98337 to add a new tag to XBL to distinguish raw props from
getter/setter props.
(Reporter)

Comment 6

17 years ago
The XBL example on http://www.xulplanet.com/tutorials/xultu/xblprops.html gave 
the impression that one could mix them, sorry.

Comment 7

17 years ago
marking verified

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.