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(); } } ]]>