Re: [webkit-dev] Leading new-line in dataTransfer.setData

2010-03-23 Thread Roland Steiner
Hm, I guess I've been successfully convinced otherwise (i.e., "patch upcoming!")... ^_^; - Roland On Tue, Mar 23, 2010 at 5:53 PM, Maciej Stachowiak wrote: > > On Mar 23, 2010, at 1:40 AM, Roland Steiner wrote: > > Hm, but the first line could also be a comment (starting with '#') which > Mozil

Re: [webkit-dev] Leading new-line in dataTransfer.setData

2010-03-23 Thread Maciej Stachowiak
On Mar 23, 2010, at 1:40 AM, Roland Steiner wrote: Hm, but the first line could also be a comment (starting with '#') which Mozilla also skips. IOW, I read the spec as "return the first line that is a (valid) URL". But of course I could be convinced otherwise... It doesn't start with "#"

Re: [webkit-dev] Leading new-line in dataTransfer.setData

2010-03-23 Thread Ian Hickson
On Tue, 23 Mar 2010, Roland Steiner wrote: > > Hm, but the first line could also be a comment (starting with '#') which > Mozilla also skips. IOW, I read the spec as "return the first line that > is a (valid) URL". But of course I could be convinced otherwise... The empty string is a valid URL.

Re: [webkit-dev] Leading new-line in dataTransfer.setData

2010-03-23 Thread Roland Steiner
Hm, but the first line could also be a comment (starting with '#') which Mozilla also skips. IOW, I read the spec as "return the first line that is a (valid) URL". But of course I could be convinced otherwise... Cheers, - Roland On Tue, Mar 23, 2010 at 5:37 PM, Maciej Stachowiak wrote: > > On

Re: [webkit-dev] Leading new-line in dataTransfer.setData

2010-03-23 Thread Maciej Stachowiak
On Mar 23, 2010, at 1:01 AM, Roland Steiner wrote: Hi all, On the topic of dataTransfer.setData, there seems to be a small inconsistency between browsers when it comes to leading new-lines. e.g., dataTransfer.setData("text/uri-list", "\nhttp://foo";) followed by dataTransfer.getData("URL

[webkit-dev] Leading new-line in dataTransfer.setData

2010-03-23 Thread Roland Steiner
Hi all, On the topic of dataTransfer.setData, there seems to be a small inconsistency between browsers when it comes to leading new-lines. e.g., dataTransfer.setData("text/uri-list", "\nhttp://foo";) followed by dataTransfer.getData("URL"). Mozilla returns an empty string (see http://mxr.mozilla.