Output with illegal bind not set irrelevant

RESOLVED DUPLICATE of bug 313118

Status

Core Graveyard
XForms
RESOLVED DUPLICATE of bug 313118
11 years ago
10 months ago

People

(Reporter: aaronr, Assigned: aaronr)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

1.64 KB, application/xhtml+xml
Details
(Assignee)

Description

11 years ago
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.
(Assignee)

Updated

11 years ago
Whiteboard: [good first bug]
(Assignee)

Comment 1

11 years ago
Created attachment 214946 [details]
testcase

Comment 2

11 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

11 years ago
I'm pretty sure that this will be fixed as part of bug 313118. I'm currently working on that.

Comment 4

11 years ago
This is fixed by bug 313118.

*** This bug has been marked as a duplicate of 313118 ***
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → DUPLICATE

Updated

6 years ago
Whiteboard: [good first bug]
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.