From 9c89a6b52d7318a7dd83ab6a83f524c3a7c6f600 Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Fri, 15 Oct 1999 13:37:06 +0000 Subject: [PATCH] bug 11803 Need new event for text value changing r=hyatt@netscape.com not dogfood approved, but the fix has been sitting in my tree for 2 weeks --- content/html/content/src/nsGenericHTMLElement.cpp | 2 ++ layout/html/content/src/nsGenericHTMLElement.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/content/html/content/src/nsGenericHTMLElement.cpp b/content/html/content/src/nsGenericHTMLElement.cpp index e814520829ed..ca79a176ee48 100644 --- a/content/html/content/src/nsGenericHTMLElement.cpp +++ b/content/html/content/src/nsGenericHTMLElement.cpp @@ -661,6 +661,8 @@ nsGenericHTMLElement::SetAttribute(PRInt32 aNameSpaceID, AddScriptEventListener(aAttribute, aValue, kIDOMFormListenerIID); else if (nsHTMLAtoms::onpaint == aAttribute) AddScriptEventListener(aAttribute, aValue, kIDOMPaintListenerIID); + else if (nsHTMLAtoms::oninput == aAttribute) + AddScriptEventListener(aAttribute, aValue, kIDOMFormListenerIID); } nsHTMLValue val; diff --git a/layout/html/content/src/nsGenericHTMLElement.cpp b/layout/html/content/src/nsGenericHTMLElement.cpp index e814520829ed..ca79a176ee48 100644 --- a/layout/html/content/src/nsGenericHTMLElement.cpp +++ b/layout/html/content/src/nsGenericHTMLElement.cpp @@ -661,6 +661,8 @@ nsGenericHTMLElement::SetAttribute(PRInt32 aNameSpaceID, AddScriptEventListener(aAttribute, aValue, kIDOMFormListenerIID); else if (nsHTMLAtoms::onpaint == aAttribute) AddScriptEventListener(aAttribute, aValue, kIDOMPaintListenerIID); + else if (nsHTMLAtoms::oninput == aAttribute) + AddScriptEventListener(aAttribute, aValue, kIDOMFormListenerIID); } nsHTMLValue val;