зеркало из https://github.com/mozilla/gecko-dev.git
Bug 4891: document.forms[x] fixed for document.written forms r=jst@netscape.com
This commit is contained in:
Родитель
78239d38c2
Коммит
cc6da544ba
|
@ -167,6 +167,10 @@ nsContentList::Item(PRUint32 aIndex, nsIDOMNode** aReturn)
|
|||
{
|
||||
nsresult result = CheckDocumentExistence();
|
||||
if (NS_OK == result) {
|
||||
if (nsnull != mDocument) {
|
||||
mDocument->FlushPendingNotifications(); // Flush pending content changes Bug 4891
|
||||
}
|
||||
|
||||
nsISupports *element = (nsISupports *)mContent.ElementAt(aIndex);
|
||||
|
||||
if (nsnull != element) {
|
||||
|
@ -186,6 +190,10 @@ nsContentList::NamedItem(const nsString& aName, nsIDOMNode** aReturn)
|
|||
nsresult result = CheckDocumentExistence();
|
||||
|
||||
if (NS_OK == result) {
|
||||
if (nsnull != mDocument) {
|
||||
mDocument->FlushPendingNotifications(); // Flush pending content changes Bug 4891
|
||||
}
|
||||
|
||||
PRInt32 i, count = mContent.Count();
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
|
|
|
@ -167,6 +167,10 @@ nsContentList::Item(PRUint32 aIndex, nsIDOMNode** aReturn)
|
|||
{
|
||||
nsresult result = CheckDocumentExistence();
|
||||
if (NS_OK == result) {
|
||||
if (nsnull != mDocument) {
|
||||
mDocument->FlushPendingNotifications(); // Flush pending content changes Bug 4891
|
||||
}
|
||||
|
||||
nsISupports *element = (nsISupports *)mContent.ElementAt(aIndex);
|
||||
|
||||
if (nsnull != element) {
|
||||
|
@ -186,6 +190,10 @@ nsContentList::NamedItem(const nsString& aName, nsIDOMNode** aReturn)
|
|||
nsresult result = CheckDocumentExistence();
|
||||
|
||||
if (NS_OK == result) {
|
||||
if (nsnull != mDocument) {
|
||||
mDocument->FlushPendingNotifications(); // Flush pending content changes Bug 4891
|
||||
}
|
||||
|
||||
PRInt32 i, count = mContent.Count();
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче