[XFORMS] Bug 391586, bind on an insert changes the in-scope evaluation context, p=msterlin@us.ibm.com, r=aaronr+me, NPOTB

git-svn-id: svn://10.0.0.236/trunk@234039 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Olli.Pettay%helsinki.fi
2007-09-06 18:26:26 +00:00
parent 0209f0a444
commit f02f6aaf97
3 changed files with 77 additions and 76 deletions

View File

@@ -351,7 +351,8 @@ nsXFormsUtils::GetNodeContext(nsIDOMElement *aElement,
nsIXFormsControl **aParentControl,
nsIDOMNode **aContextNode,
PRInt32 *aContextPosition,
PRInt32 *aContextSize)
PRInt32 *aContextSize,
PRBool aUseBindAttr)
{
NS_ENSURE_ARG(aElement);
NS_ENSURE_ARG(aOuterBind);
@@ -371,7 +372,7 @@ nsXFormsUtils::GetNodeContext(nsIDOMElement *aElement,
nsAutoString bindId;
NS_NAMED_LITERAL_STRING(bindStr, "bind");
aElement->GetAttribute(bindStr, bindId);
if (!bindId.IsEmpty()) {
if (!bindId.IsEmpty() && aUseBindAttr) {
// CASE 1: Use @bind
GetElementByContextId(aElement, bindId, aBindElement);