Closed Bug 505022 Opened 16 years ago Closed 10 years ago

Support XForms Datatypes to allow empty content

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: garysetter, Assigned: aaronr)

References

Details

Attachments

(2 files, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729) Build Identifier: Mozilla XForms 0.8.6ff3 and Firefox 3.0.8 In the XForms 1.1 spec, section 5.2.1 'Additional XForms Datatypes to Allow Empty Content', there is a list of types that we can use to validate input on the client side without making the field required. As I understand the specification, the same set of data types are suppose to be available in the XML Schema namespace and the XForms namespace. The types in the XML Schema namespace are required but the types in the XForms namespace are not. Please implement the types in the XForms namespace. See also the Google groups topic http://groups.google.com/group/mozilla.dev.tech.xforms/browse_thread/thread/ebf96f991123b419 Reproducible: Always Steps to Reproduce: 1. Make a form that uses <xf:bind nodeset="wholeField" type="xf:integer"> 2. Load the form. 3. The fields that are bound the wholeField show do not validate. 4. Submit the form. Actual Results: 5. Submit fails Expected Results: 5 Submit should succeed
Bug 97806 is on xforms,
OS: Windows XP → All
Hardware: x86 → All
Version: unspecified → Trunk
Working on a fix for this. I'll attach a patch that works on the validation side, but still have to get this working so that not only do we validate xforms types with empty strings, but have to make sure that a xf:input bound to a xforms:boolean, for example, will show up as a checkbox.
Assignee: nobody → aaronr
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attached patch first attempt (obsolete) — Splinter Review
Attached file testcase
Attached patch second attemptSplinter Review
added the xforms schema to our chrome and hooked it into model creation
Attachment #393351 - Attachment is obsolete: true
Ugh, xforms types are unions, which screws up our 'typelist' that we build in nsxformsmodelelement.cpp. Will probably have to special case them otherwise a xf:input bound to a xforms:boolean type won't be a checkbox.
RIP xforms
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: