From 8416e8723eb9d0cb6e8bff22b48682950e60acad Mon Sep 17 00:00:00 2001 From: "aaronr%us.ibm.com" Date: Wed, 19 Jul 2006 18:11:01 +0000 Subject: [PATCH] [XForms] label containing output does not display. Bug 344180, r=doronr+olli git-svn-id: svn://10.0.0.236/trunk@203127 18797224-902f-48f8-a5cc-f745e15eee43 --- .../extensions/xforms/resources/content/xforms.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/mozilla/extensions/xforms/resources/content/xforms.xml b/mozilla/extensions/xforms/resources/content/xforms.xml index 7f272a873c1..a894bee28b7 100644 --- a/mozilla/extensions/xforms/resources/content/xforms.xml +++ b/mozilla/extensions/xforms/resources/content/xforms.xml @@ -258,7 +258,19 @@ - this.control.value = this.accessors.getValue(); + // the label control hides/unhides anonymous content based on the + // the value we set it to. The control assumes that if the value + // comes from a binding or linking attribute that the value we are + // setting it to will be null + var externalValue = this.hasAttribute("ref") || + this.hasAttribute("bind") || + this.hasAttribute("src"); + + if (externalValue) { + this.control.value = this.accessors.getValue(); + } else { + this.control.value = null; + } return true;