Fix for bug 4050 - problem with HTMLSelectElement::Add(). Fix reviewed by Eric Pollmann and approved by CYeh.

This commit is contained in:
vidur%netscape.com 1999-05-20 21:50:14 +00:00
Родитель 20c2b6203a
Коммит dc0c7c7de9
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);
}

Просмотреть файл

@ -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);
}