From 840144c2da9c3a09387917dd8c5e0efcf631ba22 Mon Sep 17 00:00:00 2001 From: "bryner%netscape.com" Date: Mon, 28 Jan 2002 00:32:11 +0000 Subject: [PATCH] Make sure to look at the select element for onchange handlers, not the anonymous children. Not part of the build. git-svn-id: svn://10.0.0.236/trunk@113015 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/forms/resources/content/select.xml | 4 ++-- mozilla/layout/html/forms/resources/content/select.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/layout/forms/resources/content/select.xml b/mozilla/layout/forms/resources/content/select.xml index 5db28fa734f..da776964cf8 100644 --- a/mozilla/layout/forms/resources/content/select.xml +++ b/mozilla/layout/forms/resources/content/select.xml @@ -70,8 +70,8 @@ selection.select(row.value); select.selectElement.setOptionsSelectedByIndex(row.value, row.value, true, true, false, false); - if ("onchange" in this) - this.onchange(); + if ("onchange" in select) + select.onchange(); } } ]]> diff --git a/mozilla/layout/html/forms/resources/content/select.xml b/mozilla/layout/html/forms/resources/content/select.xml index 5db28fa734f..da776964cf8 100644 --- a/mozilla/layout/html/forms/resources/content/select.xml +++ b/mozilla/layout/html/forms/resources/content/select.xml @@ -70,8 +70,8 @@ selection.select(row.value); select.selectElement.setOptionsSelectedByIndex(row.value, row.value, true, true, false, false); - if ("onchange" in this) - this.onchange(); + if ("onchange" in select) + select.onchange(); } } ]]>