Re: [whatwg] data URLs and XMLHttpRequest

2012-09-07 Thread Anne van Kesteren
On Thu, Sep 6, 2012 at 8:47 PM, Ian Hickson i...@hixie.ch wrote: I ended up reverting that text, it didn't really work. Is there anything else you need for XHR instead? I guess I will just special case data URLs in the same way. Seems somewhat ugly, but I do not really have a better alternative

Re: [whatwg] Conformance checking of missing alternative content for images

2012-09-07 Thread Benjamin Hawkes-Lewis
On Fri, Sep 7, 2012 at 6:12 AM, Ian Hickson i...@hixie.ch wrote: On Sun, 26 Aug 2012, Benjamin Hawkes-Lewis wrote: It would help catch the not uncommon antipattern where the content of a link or button is provided only by a background image. a href=somewhere/a a

Re: [whatwg] srcset isn't future-friendly to screen size differences

2012-09-07 Thread Markus Ernst
Am 07.09.2012 03:36 schrieb Tab Atkins Jr.: This email is an extension of the thread started at http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-August/036953.html by John Mellor, distilling the core problem he has into a more easily-understood and digested form. The srcset attribute,

[whatwg] Submitting contentEditable Content In A Form

2012-09-07 Thread Hugh Guiney
I'm developing a CMS and would like to be able to submit user-edited content back to the server, but at present, it's not possible to do this without copying the contents of the edited element with JavaScript into, say, a hidden form field. I think that there should be some mechanism to associate

Re: [whatwg] srcset isn't future-friendly to screen size differences

2012-09-07 Thread Simon Pieters
On Fri, 07 Sep 2012 06:07:30 +0200, Fred Andrews freda...@live.com wrote: From: jackalm...@gmail.com ... I'm not sure how best to solve this, but John Mellor suggested allowing the specification of the image's native dimensions somehow. That way, the browser could know that the 1600.jpg

[whatwg] Exposing visible string of an input field

2012-09-07 Thread TAMURA, Kent
Proposal: I'd like to propose adding new IDL attribute to HTMLInputElement. readonly attribute DOMString rawValue; It returns text content which a user actually see in an input field. * For text, search, url, tel, password types, it's equivalent to 'value' IDL attribute. * For email type,

Re: [whatwg] input type=barcode?

2012-09-07 Thread Mikko Rantalainen
2012-09-07 07:35 Europe/Helsinki: Ian Hickson: On Thu, 30 Aug 2012, Jonas Sicking wrote: I think while in theory we could rely on UAs to enable barcode entry anywhere, which definitely would provide the maximum capabilities for [...] In this respect it's similar to the

Re: [whatwg] Submitting contentEditable Content In A Form

2012-09-07 Thread Mikko Rantalainen
2012-09-07 11:57 Europe/Helsinki: Hugh Guiney: JavaScript into, say, a hidden form field. I think that there should be some mechanism to associate contentEditable elements with forms—maybe the combination of contentEditable=true and the presence of @name creates an implicit form control? The

Re: [whatwg] srcset isn't future-friendly to screen size differences

2012-09-07 Thread Fred Andrews
From: sim...@opera.com ... On Fri, 07 Sep 2012 06:07:30 +0200, Fred Andrews freda...@live.com wrote: From: jackalm...@gmail.com ... I'm not sure how best to solve this, but John Mellor suggested allowing the specification of the image's native dimensions somehow. That way, the

Re: [whatwg] input type=barcode?

2012-09-07 Thread Anne van Kesteren
On Fri, Sep 7, 2012 at 12:21 PM, Mikko Rantalainen mikko.rantalai...@peda.net wrote: However, it's far from clear if this is worth WHATWG specification right yet. All these features could be nice but unless UA vendors are going to implement at least some of these, there's no point. There's

Re: [whatwg] Should editable elements have placeholder attribute?

2012-09-07 Thread Aryeh Gregor
On Thu, Sep 6, 2012 at 6:30 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: Note that this shouldn't be hard to do without magic. Just something like this in the UA style sheet: [contenteditable]:empty { min-height: 1em; } contenteditable is not a boolean attribute -- you'd need to do

Re: [whatwg] input type=barcode?

2012-09-07 Thread Tobie Langel
On Fri, Sep 7, 2012 at 6:35 AM, Ian Hickson i...@hixie.ch wrote: On Thu, 30 Aug 2012, Jonas Sicking wrote: I think while in theory we could rely on UAs to enable barcode entry anywhere, which definitely would provide the maximum capabilities for the user. In practice it seems hard to create

Re: [whatwg] input type=barcode?

2012-09-07 Thread Glenn Maynard
On Thu, Aug 30, 2012 at 5:44 PM, Jonas Sicking jo...@sicking.cc wrote: I think while in theory we could rely on UAs to enable barcode entry anywhere, which definitely would provide the maximum capabilities for the user. In practice it seems hard to create UI which enables that while at the

Re: [whatwg] srcset isn't future-friendly to screen size differences

2012-09-07 Thread Hans Muller
On 9/6/12 6:36 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: Consider the following example: img srcset=800.jpg 1x, 1600.jpg 2x style=width: 100%; height: auto; For a screen that's somewhere near 800px wide, this works just fine. However, a 1x screen 1600px wide (not too uncommon - I think a

Re: [whatwg] srcset isn't future-friendly to screen size differences

2012-09-07 Thread Tab Atkins Jr.
On Fri, Sep 7, 2012 at 9:21 AM, Hans Muller hmul...@adobe.com wrote: On 9/6/12 6:36 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: Consider the following example: img srcset=800.jpg 1x, 1600.jpg 2x style=width: 100%; height: auto; For a screen that's somewhere near 800px wide, this works just

Re: [whatwg] Security restriction allows content thievery

2012-09-07 Thread Adam Barth
On Thu, Sep 6, 2012 at 9:53 PM, Ian Hickson i...@hixie.ch wrote: On Fri, 7 Sep 2012, Fred Andrews wrote: I think the aim is to have the URL of the page that includes these data: URLs sent to the tracking server? Ah, I see. So say you have a page A, which itself contains a data: URL, and you

Re: [whatwg] Submitting contentEditable Content In A Form

2012-09-07 Thread Alain Couthures
Le 07/09/2012 12:32, Mikko Rantalainen a écrit : 2012-09-07 11:57 Europe/Helsinki: Hugh Guiney: JavaScript into, say, a hidden form field. I think that there should be some mechanism to associate contentEditable elements with forms—maybe the combination of contentEditable=true and the presence

Re: [whatwg] Features for responsive Web design

2012-09-07 Thread Mathew Marquis
On Sep 6, 2012, at 7:26 AM, Simon Pieters wrote: On Wed, 05 Sep 2012 19:45:41 +0200, Mathew Marquis m...@matmarquis.com wrote: I can say for my own part: manipulating strings is far more difficult than manipulating the value of individual attributes. It’s hard to imagine a situation