Re: [whatwg] Make files attribute of the input element writable

2012-05-22 Thread Adam Barth
On Tue, May 22, 2012 at 9:16 PM, Maciej Stachowiak wrote: > It seems like making FileList mutable would serve the same use case and would > also be more flexible (as you could upload a set of files collected from > possibly multiple sources). And it seems like adding is a more likely desired >

Re: [whatwg] Make files attribute of the input element writable

2012-05-22 Thread Maciej Stachowiak
It seems like making FileList mutable would serve the same use case and would also be more flexible (as you could upload a set of files collected from possibly multiple sources). And it seems like adding is a more likely desired behavior than replacing when dragging files onto a multi-file inpu

Re: [whatwg] srcset javascript implementation (Respondu) [updated]

2012-05-22 Thread David Clements
Hey all, Just wanted to thank Julian and Glenn for their help in pointing me in the right direction for the srcset implementation in the Respondu framework. Respondu srcset now works with url's containing commas, as it more closely follows the parsing algorithm, If anyone takes a look at the impr

Re: [whatwg] Make files attribute of the input element writable

2012-05-22 Thread Jonas Sicking
On Tue, May 22, 2012 at 10:41 AM, Nico Weber wrote: > Hi, > > The files attribute of the input element is currently marked readonly > [1], to protect from `myInput.files = "/etc/passwd"; myForm.submit()`. > Since its type is now FileList and not string, that's no longer > necessary. > > Making the

Re: [whatwg] Media queries, viewport dimensions, srcset and picture

2012-05-22 Thread Mike Gossmann
The patern thing is tangential. SRCSET using image dimensions instead of screen dimensions would work just as well, so would picture if it was set up to allow saying what the dimensions of each image are. I would argue that this does address the pixel density issue though. It does it in the sam

Re: [whatwg] Make files attribute of the input element writable

2012-05-22 Thread Nico Weber
Proposed Firefox patch https://bugzilla.mozilla.org/show_bug.cgi?id=757664 On Tue, May 22, 2012 at 4:10 PM, Ojan Vafai wrote: > Proposed WebKit patch https://bugs.webkit.org/show_bug.cgi?id=87154. We'd > really like to hear if Hixie and/or other browser vendors have reservations > on making this

Re: [whatwg] Make files attribute of the input element writable

2012-05-22 Thread Ojan Vafai
Proposed WebKit patch https://bugs.webkit.org/show_bug.cgi?id=87154. We'd really like to hear if Hixie and/or other browser vendors have reservations on making this change, otherwise, we'll commit this soon. On Tue, May 22, 2012 at 10:41 AM, Nico Weber wrote: > Hi, > > The files attribute of the

Re: [whatwg] responsive images

2012-05-22 Thread Tab Atkins Jr.
On Tue, May 22, 2012 at 3:08 PM, Kornel Lesiński wrote: > On 22 maj 2012, at 15:57, "Tab Atkins Jr." wrote: >> On Tue, May 22, 2012 at 7:26 AM, Kornel Lesiński wrote: >>> I think that 3x device is very very unlikely to ever happen, since 2x >>> screens are may be dense enough to have pixels sma

Re: [whatwg] responsive images

2012-05-22 Thread Charles Pritchard
On 5/22/2012 3:08 PM, Kornel Lesi��ski wrote: > On 22 maj 2012, at 15:57, "Tab Atkins Jr." wrote: > >> On Tue, May 22, 2012 at 7:26 AM, Kornel Lesi��ski >> wrote: >>> I think that 3x device is very very unlikely to ever happen, since 2x >>> screens are may be dense enough to have pixels smaller

Re: [whatwg] responsive images

2012-05-22 Thread Kornel Lesi��ski
On 22 maj 2012, at 15:57, "Tab Atkins Jr." wrote: > On Tue, May 22, 2012 at 7:26 AM, Kornel Lesi��ski wrote: >> I think that 3x device is very very unlikely to ever happen, since 2x >> screens are may be dense enough to have pixels smaller than human eye can >> see. > > Tell that to printers,

Re: [whatwg] Features for responsive Web design

2012-05-22 Thread Kornel Lesi��ski
Sorry, I forgot to clarify this ― I had in mind adding width/height on each element, not on . -- regards, Kornel On 22 maj 2012, at 16:01, Maciej Stachowiak wrote: > > On May 21, 2012, at 9:37 PM, Kornel Lesi��ski wrote: > >> >> >>> There’s no prior precedent this sort of thing―there’s

Re: [whatwg] Features for responsive Web design

2012-05-22 Thread Maciej Stachowiak
On May 21, 2012, at 9:37 PM, Kornel Lesiński wrote: > > >> There’s no prior precedent this sort of thing—there’s no reason we can’t >> find a way to preserve an image’s intrinsic width using `picture`. I wonder >> if simply adding `width` and `height` attributes on the element (similar to >

Re: [whatwg] responsive images

2012-05-22 Thread Tab Atkins Jr.
On Tue, May 22, 2012 at 3:53 AM, Paul Court wrote: > As a HTML author and programmer, I just cannot see myself implementing the > current srcset proposal on sites. As a programmer, it has very much got what > we would call a "bad code smell". > > > > Not to mention, what happens when a 3x devic

Re: [whatwg] Features for responsive Web design

2012-05-22 Thread Markus Ernst
Am 18.05.2012 23:19 schrieb Kornel Lesiński: If you'd like to see proposal succeed, then please help fixing its drawbacks. Make selection and embedding of 2x images easier. Give UA freedom to use cached higher-quality images when it can. Give UA freedom to choose images to minimize bandwidth or

Re: [whatwg] srcset javascript implementation (Respondu)

2012-05-22 Thread huperekchuno
Hey brenton, No I've not pulled respondu.davidmarkclements.com, but I noticed it was down a few times, looked into and found my domain provider had over written two of the nameserver records (lesson: cheap doesn't always pay), this has been corrected but of course propagation takes a while. If

Re: [whatwg] Media queries, viewport dimensions, srcset and picture

2012-05-22 Thread Markus Ernst
Am 22.05.2012 12:46 schrieb Andy Davies: On 22 May 2012 10:43, Anne van Kesteren wrote: On Tue, May 22, 2012 at 10:21 AM, Markus Ernst wrote: I am somehow surprised that there are no reactions to this proposal. To me as a humble author it looks like it would address the main issue of both a

[whatwg] Make files attribute of the input element writable

2012-05-22 Thread Nico Weber
Hi, The files attribute of the input element is currently marked readonly [1], to protect from `myInput.files = "/etc/passwd"; myForm.submit()`. Since its type is now FileList and not string, that's no longer necessary. Making the attribute writable would allow setting the files property of an in

Re: [whatwg] runat (or "server") attribute

2012-05-22 Thread Alexandre Morgaut
Hi, When we started developing Wakanda, a member of the team asked if it would be revelent to support the "runat" attribute in the script tag It is supported by ASP, and Aptana Jaxer choose to support it as well (Note: even PHP support it) We rejected it Such feature is a bad incitation for t

Re: [whatwg] responsive images

2012-05-22 Thread Glenn Maynard
On Tue, May 22, 2012 at 10:31 AM, Julian Reschke wrote: > It may not be uglier but it's much more fragile as the examples and the > prose in the spec give the impression that you can use the "," to tokenize, > which would be incorrect. > You're grasping at straws. If you're writing a tokenizer,

Re: [whatwg] responsive images

2012-05-22 Thread Julian Reschke
On 2012-05-22 17:02, Glenn Maynard wrote: (I wish people would stop starting new threads about the same topic.) On Tue, May 22, 2012 at 5:53 AM, Paul Court wrote: As a HTML author and programmer, I just cannot see myself implementing the current srcset proposal on sites. As a programmer, it h

Re: [whatwg] responsive images

2012-05-22 Thread Glenn Maynard
(I wish people would stop starting new threads about the same topic.) On Tue, May 22, 2012 at 5:53 AM, Paul Court wrote: > As a HTML author and programmer, I just cannot see myself implementing the > current srcset proposal on sites. As a programmer, it has very much got > what we would call a "

Re: [whatwg] responsive images

2012-05-22 Thread Kornel Lesi��ski
On 22 maj 2012, at 05:53, Paul Court wrote: > As a HTML author and programmer, I just cannot see myself implementing the > current srcset proposal on sites. As a programmer, it has very much got what > we would call a "bad code smell". > > > > Not to mention, what happens when a 3x device is

Re: [whatwg] Media queries, viewport dimensions, srcset and picture

2012-05-22 Thread Mathew Marquis
On May 22, 2012, at 5:43 AM, Anne van Kesteren wrote: > On Tue, May 22, 2012 at 10:21 AM, Markus Ernst wrote: >> I am somehow surprised that there are no reactions to this proposal. To me >> as a humble author it looks like it would address the main issue of both >> and @srcset, as it leaves th

Re: [whatwg] responsive images

2012-05-22 Thread Paul Court
I've been trying to follow this thread for a week now, but I'm a bit lost, so apologies if this is the wrong place. As a HTML author and programmer, I just cannot see myself implementing the current srcset proposal on sites. As a programmer, it has very much got what we would call a "bad code

Re: [whatwg] Media queries, viewport dimensions, srcset and picture

2012-05-22 Thread Andy Davies
On 22 May 2012 10:43, Anne van Kesteren wrote: > On Tue, May 22, 2012 at 10:21 AM, Markus Ernst wrote: >> I am somehow surprised that there are no reactions to this proposal. To me >> as a humble author it looks like it would address the main issue of both >> and @srcset, as it leaves the MQ to

Re: [whatwg] Media queries, viewport dimensions, srcset and picture

2012-05-22 Thread Anne van Kesteren
On Tue, May 22, 2012 at 10:21 AM, Markus Ernst wrote: > I am somehow surprised that there are no reactions to this proposal. To me > as a humble author it looks like it would address the main issue of both > and @srcset, as it leaves the MQ to CSS, and thus separates design > from content. 1. It

Re: [whatwg] Media queries, viewport dimensions, srcset and picture

2012-05-22 Thread Markus Ernst
Am 21.05.2012 07:49 schrieb Mike Gossmann: I am somehow surprised that there are no reactions to this proposal. To me as a humble author it looks like it would address the main issue of both and @srcset, as it leaves the MQ to CSS, and thus separates design from content.