Closed
Bug 276444
Opened 20 years ago
Closed 20 years ago
xbl:inherits should have feedback
Categories
(Core :: XBL, enhancement)
Tracking
()
RESOLVED
INVALID
People
(Reporter: surkov, Assigned: hyatt)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041122 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041122 I set on anonymous node 'xbl:inherits' attribute. Attribute value of anonymous node is changed when corresponding attribute of binding is changed. I think it's needed to realize 'inherits' attribute feedback. In other words when I change attribute value of anonymous node then attribute value of binding should be changed also. This feature helps to keep attribute value of binding in correct state. Reproducible: Always Steps to Reproduce:
| Reporter | ||
Comment 1•20 years ago
|
||
In instance html:input inherits 'value' attribute from textbox binding. When I
type text into html:input then 'value' attribute is changed but 'value'
attribute of textbox isn't changed. Therefore when I try
textbox.getAttribute('value') then I get wrong value of textbox attribute.
Comment 2•20 years ago
|
||
(In reply to comment #1) > When I type text into html:input then 'value' attribute is changed That's not true. The DOM HTML .value attribute is not the same as the HTML attribute 'value' in HTML. When you type text in an html textbox, the dom .value is changed, but not the html attribute "value". This is not a bug, this is by design (and is actually according to the specs.
| Reporter | ||
Comment 3•20 years ago
|
||
Ok. I agree my previous example is not correct.
You can try checkbox instead of html:input.
//test.xml
<binding id="binding1">
<content>
<xul:checkbox xbl:inherits="checked"/>
</content>
</binding>
//test.xul
<checkbox/>
<button label="test1"
oncommand="alert(this.previousSibling.getAttribute('checked'))"/>
<binding1/>
<button label="test2"
oncommand="alert(this.previousSibling.getAttribute('checked'))"/>
Attribute 'checked' of checkbox will be changed but attribute 'checked' of
binding1 will not be changed after clicks on checkboxes. This example shows what
I suppose.
Comment 4•20 years ago
|
||
This is invalid. Multiple child nodes can inherit a value from the binding, and may want to change it independently of each other (and of the binding).
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 5•20 years ago
|
||
You're right: maybe sometimes xbl:inherits without feedback is useful. But sometimes such possibility is needed. When I should provide such feedback myself then I should write routine code. If such feature will be presented then it will save much time of developer. How do you think is it needed to add new attribute (xbl:feedbackinherits) or something else?
Comment 6•20 years ago
|
||
I'd bring that up in the relevant newsgroup...
| Reporter | ||
Comment 7•20 years ago
|
||
Please give me newsgroup url to watch the discussion.
Comment 8•20 years ago
|
||
netscape.public.mozilla.xbl newsgroup (news.mozilla.org server).
| Reporter | ||
Comment 9•20 years ago
|
||
corresponding topic of newsgroup http://groups-beta.google.com/group/netscape.public.mozilla.xbl/browse_thread/thread/e77dce6086c2d6d9/80bc2bf5caebf537#80bc2bf5caebf537
You need to log in
before you can comment on or make changes to this bug.
Description
•