mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-23 13:04:28 +00:00
fix for bug 97581, <xsl:variable name="foo" /> needs to be "", r=peterv, sr=jst, a=dbaron
This commit is contained in:
parent
e7d8a18ab8
commit
d01c24b0aa
@ -1754,7 +1754,7 @@ ExprResult* XSLTProcessor::processVariable
|
||||
Expr* expr = ps->getExpr(attr->getValue());
|
||||
return expr->evaluate(node, ps);
|
||||
}
|
||||
else {
|
||||
else if (xslVariable->hasChildNodes()) {
|
||||
Document* resultTree = ps->getResultDocument();
|
||||
NodeStack* nodeStack = ps->getNodeStack();
|
||||
nodeStack->push(resultTree->createDocumentFragment());
|
||||
@ -1765,6 +1765,9 @@ ExprResult* XSLTProcessor::processVariable
|
||||
nodeSet->add(node);
|
||||
return nodeSet;
|
||||
}
|
||||
else {
|
||||
return new StringResult("");
|
||||
}
|
||||
} //-- processVariable
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user