8000 Preserve NaN in to match XPath spec · Issue #822 · getodk/javarosa · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Preserve NaN in to match XPath spec #822
Open
@latin-panda

Description

@latin-panda

Description

Per the XForms spec and W3 XPath spec, non-numeric or missing inputs in form calculations should evaluate to NaN.
JavaRosa should consistently preserve NaN in these cases to align with the spec. The NaN in submitted data highlights form design issues (e.g., non-required or non-numeric fields) and maintains transparency, though it may appear less aesthetic in the UI.

Proposed Change

Ensure JavaRosa preserves NaN in calculations for missing or non-numeric inputs, matching the XPath spec. This is a low-priority enhancement to maintain spec compliance and avoid masking form design errors.

Additional Notes

This issue was originally discussed in getodk/web-forms#383.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0