Fix for bug 4050 - problem with HTMLSelectElement::Add(). Fix reviewed by Eric Pollmann and approved by CYeh.
This commit is contained in:
@@ -282,7 +282,7 @@ nsHTMLSelectElement::Add(nsIDOMHTMLElement* aElement, nsIDOMHTMLElement* aBefore
|
||||
nsresult result;
|
||||
nsIDOMNode* ret;
|
||||
|
||||
if (nsnull != aBefore) {
|
||||
if (nsnull == aBefore) {
|
||||
result = mInner.AppendChild(aElement, &ret);
|
||||
NS_IF_RELEASE(ret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user