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;