Closed
Bug 98327
Opened 23 years ago
Closed 23 years ago
The <getter> and <setter> functions only work in the 1st binding
Categories
(Core :: XBL, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: wgrinfeld, Assigned: hyatt)
Details
Attachments
(3 files)
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•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
Reporter | ||
Comment 3•23 years ago
|
||
Assignee | ||
Comment 4•23 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
Closed: 23 years ago
Resolution: --- → INVALID
Assignee | ||
Comment 5•23 years ago
|
||
Filed bug 98337 to add a new tag to XBL to distinguish raw props from getter/setter props.
Reporter | ||
Comment 6•23 years ago
|
||
The XBL example on http://www.xulplanet.com/tutorials/xultu/xblprops.html gave the impression that one could mix them, sorry.
You need to log in
before you can comment on or make changes to this bug.
Description
•