[whatwg] Canvas API: What should happen if non-finite floats are used
Mike Shaver
mike.shaver at gmail.com
Wed Sep 8 11:02:46 PDT 2010
On Wed, Sep 8, 2010 at 10:33 AM, Oliver Hunt <oliver at apple.com> wrote:
> In a lot of cases all you want to do is ignore NaN and Infinite values, otherwise you basically have to prepend every call to canvas with NaN and Infinity checks if you're computing values unless you can absolutely guarantee your values won't have gone nuts at any point in the computation -- otherwise you're going to get reports that occasionally your content breaks but with no repro case (typical users will not be seeing error messages, it just "doesn't work").
Does this mean that you're expecting that the ignored calls didn't
matter? Surely having parts of the drawing be missing will often be
noticed by users as well!
Mike
More information about the whatwg
mailing list