W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2006

[whatwg] Little canvas toDataUrl

From: Lenny Domnitser <ldrhcp@gmail.com>
Date: Wed, 26 Apr 2006 21:04:14 -0400
Message-ID: <94355ecc0604261804w172349fex2ebfc2d3aa0d6b16@mail.gmail.com>
Hello, list.

Spec says <http://www.whatwg.org/specs/web-apps/current-work/#todataurl>:

> When trying to use types other than image/png, authors can check if
> the image was really returned in the requested format by checking to
> see if the returned string starts with the exact string
> "data:image/png" or not. If it does, the image is PNG, and thus the
> requested type was not supported.

This should probably be ammended to starting with one of these exact
strings: "data:image/png," or "data:image/png;". This ensures that no
future content type that starts with "image/png" can break the
Received on Wednesday, 26 April 2006 18:04:14 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:46 UTC