Closed
Bug 330396
Opened 19 years ago
Closed 19 years ago
Output with illegal bind not set irrelevant
Categories
(Core Graveyard :: XForms, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 313118
People
(Reporter: aaronr, Assigned: aaronr)
Details
Attachments
(1 file)
(deleted),
application/xhtml+xml
|
Details |
As per model-construct-done processing, all controls bound to a node that doesn't exist, should behave as if they are bound to an irrelevant node. All of our controls in this situation don't show up. EXCEPT the output control.
Comment 2•19 years ago
|
||
It appears that simply doing a cut-n-paste of the following code from nsXFormsControlStub.cpp to nsXFormsOutputElement.cpp fixes the problem ...
} else if (mModel) {
// we should have been successful. Must be pointing to a node that
// doesn't exist in the instance document. Disable the control
// per 4.2.2 in the spec
nsCOMPtr<nsIXTFElementWrapper> xtfWrap(do_QueryInterface(mElement));
NS_ENSURE_STATE(xtfWrap);
xtfWrap->SetIntrinsicState(NS_EVENT_STATE_DISABLED);
// Dispatch event
nsXFormsUtils::DispatchEvent(mElement, eEvent_Disabled);
}
... but I need to check if doing so doesn't break something else and/or violate the spec in some way.
Comment 3•19 years ago
|
||
I'm pretty sure that this will be fixed as part of bug 313118. I'm currently working on that.
Comment 4•19 years ago
|
||
This is fixed by bug 313118.
*** This bug has been marked as a duplicate of 313118 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Updated•14 years ago
|
Whiteboard: [good first bug]
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•