Closed Bug 330396 Opened 19 years ago Closed 19 years ago

Output with illegal bind not set irrelevant

Categories

(Core Graveyard :: XForms, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 313118

People

(Reporter: aaronr, Assigned: aaronr)

Details

Attachments

(1 file)

1.64 KB, 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.
Whiteboard: [good first bug]
Attached file testcase
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.
I'm pretty sure that this will be fixed as part of bug 313118. I'm currently working on that.
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
Whiteboard: [good first bug]
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: