Re: [whatwg] Canvas spec issues

2007-05-15 Thread Ian Hickson
On Tue, 15 May 2007, Philip Taylor wrote: var dataURL = canvas.toDataURL(); // dataURL is just a string var img = new Image(); img.src = dataURL; // img is an image that was generated from a data: URI found in this Document, so its origin is the origin of this Document

Re: [whatwg] Canvas spec issues

2007-05-14 Thread Ian Hickson
On Wed, 4 Apr 2007, Philip Taylor wrote: Relating to data: URLs: To prevent information leakage, the toDataURL() and getImageData() methods should raise a security exception if the canvas ever had images painted on it that originate from a domain other than the domain of the script that

Re: [whatwg] Canvas spec issues

2007-05-14 Thread Philip Taylor
On 15/05/07, Ian Hickson [EMAIL PROTECTED] wrote: On Wed, 4 Apr 2007, Philip Taylor wrote: Relating to data: URLs: To prevent information leakage, the toDataURL() and getImageData() methods should raise a security exception if the canvas ever had images painted on it that originate from a

Re: [whatwg] Canvas spec issues

2007-05-12 Thread Darin Adler
On May 11, 2007, at 4:18 PM, Ian Hickson wrote: On Mon, 26 Mar 2007, Philip Taylor wrote: A couple of points that are unclear and are causing differences between current implementations (which is presumably a bad thing): interface HTMLCanvasElement says attribute long width;. #reflect says

Re: [whatwg] Canvas spec issues

2007-05-12 Thread Anne van Kesteren
On Sat, 12 May 2007 18:21:21 +0200, Darin Adler [EMAIL PROTECTED] wrote: If it's unsigned, it's ambiguous what behavior should be when an attempt is made to set the value to a signed value via JavaScript. Should an INDEX_SIZE_ERR exception be raised? Should the value be ignored? I think I

Re: [whatwg] Canvas spec issues

2007-05-11 Thread Ian Hickson
On Mon, 26 Mar 2007, Philip Taylor wrote: A couple of points that are unclear and are causing differences between current implementations (which is presumably a bad thing): interface HTMLCanvasElement says attribute long width;. #reflect says If a reflecting DOM attribute is a signed

[whatwg] Canvas spec issues

2007-03-25 Thread Philip Taylor
A couple of points that are unclear and are causing differences between current implementations (which is presumably a bad thing): interface HTMLCanvasElement says attribute long width;. #reflect says If a reflecting DOM attribute is a signed integer type (long) then the content attribute must