User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:22.214.171.124) Gecko/20060426 Firefox/126.96.36.199
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:188.8.131.52) Gecko/20060426 Firefox/184.108.40.206
When values are typed as float or double, have the "special values" of INF and -INF. When simple types are bound to facets of INF/-INF the values do not behave as expected.
Problem appears to be around the fact that strtod (and ToFloat()) don't return the appropriate values for INF and -INF. strtod usually
returns 0.0 for both INF and -INF. ToFloat() usually returns garbage for INF
X-Smiles uses the Xerces validator, which handles these properly ie -INF < INF,
-INF < everything, everything < INF, ... what you'd expect.
Perhaps this should be handled directly in strtod and ToFloat()? or just indirectly our processing of infinity.
See related bug 331897
Created attachment 222055 [details]
test case w/ inline schema
enter values in form to see validity results
Created attachment 222856 [details] [diff] [review]
since it was fresh on my mind, handling in schema validation code makes more sense as handling of NaN is special to xml schema. Though would *be nice* if moz utils could return appropriate values for +/-INF.
checked into trunk for sspeiche
checked into 1.8.0 branch on 2006/09/21
checked into 1.8 branch on 2006/11/21