diff --git a/extensions/xforms/resources/content/xforms.xml b/extensions/xforms/resources/content/xforms.xml index 03cef1b817d1..67c01605853f 100644 --- a/extensions/xforms/resources/content/xforms.xml +++ b/extensions/xforms/resources/content/xforms.xml @@ -1113,7 +1113,11 @@ - this.controlField.readonly = this.accessors.isReadonly(); + if (this.accessors.isReadonly()) { + this.controlField.setAttribute("readonly", "readonly"); + } else { + this.controlField.removeAttribute("readonly"); + } // If the value has not changed, no need to update the // value of the control, because that makes the textarea widget // to scroll up.