Commit Graph

10 Commits

Author SHA1 Message Date
bryner%brianryner.com
2bdc455d83 Switch Equals and EqualsASCII to EqualsLiteral where we can.
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163264 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-05 22:10:19 +00:00
bryner%brianryner.com
27ef0a3742 Use 1 and 0 as string values for boolean inputs.
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163263 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-05 22:02:02 +00:00
bryner%brianryner.com
5645f5a2ba Write input value to the instance data on blur.
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163253 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-05 19:24:31 +00:00
bryner%brianryner.com
85bfc9957e Get the string value by evaluating the binding expression as a string, rather than always looking at the instance node's child. This fixes binding expressions that reference attributes. r=aaronr.
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163215 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-04 22:24:40 +00:00
bryner%brianryner.com
106181ce09 Use the node value of the instance node's child, rather than calling getTextContent. This makes us conformant to the spec.
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163202 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-04 17:53:35 +00:00
bryner%brianryner.com
9402f93835 Interim fix to make xforms input elements be inline frames.
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163151 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-03 06:48:15 +00:00
bryner%brianryner.com
d75d116e54 - Make model elements keep track of which form controls are bound to them, and notify all of them when a refresh event is received.
- Make Refresh() handle adding a form control to its model, and WillSetAttribute (bind or ref) takes care of removing it.


git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163118 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-01 22:06:50 +00:00
bryner%brianryner.com
846ad899bb - Implement nsISupports for nsXFormsControl so that we can QI to it
- Add a Refresh() method to nsXFormsControl, which will soon be called on all form controls by the model, in response to a refresh event.
- Move mInstanceNode onto nsXFormsControl, since all controls will have one.
- Move creation of input to OnCreated so that we always have a visualContent to return.
- Move binding of input control from DocumentChanged to AttributeSet
- Implment Refresh for InputElement, which fetches the value from the instance data and sets it in the text or checkbox control.


git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163108 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-01 20:32:50 +00:00
bryner%brianryner.com
58b80d908a Rename GetInstanceNode to FindInstanceNode, to indicate that it's not particularly cheap to call.
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163101 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-01 19:08:47 +00:00
bryner%brianryner.com
0019f63901 Factor out a base class for XForms elements and a base class for form control elements. Move code for cloning a set of iid's for scripting onto nsXFormsElement. Make input elements create an anonymous html:input, which will eventually get its type set from the schema type bound to the instance data node.
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@161953 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-08 23:59:47 +00:00