W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2013

Re: [whatwg] <imgset> responsive imgs proposition (Re: The src-N proposal)

From: Anselm Hannemann <info@anselm-hannemann.com>
Date: Tue, 12 Nov 2013 09:22:19 +0100
Message-Id: <E6FBBA8C-E302-496B-9BF2-A537D15F0AA4@anselm-hannemann.com>
To: "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Cc: whatwg <whatwg@lists.whatwg.org>
On 12.11.2013, at 09:08, Jukka K. Korpela <jkorpela@cs.tut.fi> wrote:

> 2013-11-12 9:58, Adam Barth wrote:
>> Unfortunately, we can't add new tags to head.  If the parser sees a
>> tag it doesn't recognize in the head, it creates a fake body tag and
>> pushes the tag down into the body.
> But you could use <style type=text/foobar>...</style>, with a suitable value for foobar, like x-imgset. This could even be handled with a polyfill in old browsers (JavaScript code that reads such elements and interprets their content).
> Yucca
> (who would still prefer text/css)


while one could do that, we want to introduce a new web-standard.
What you describe is a hacky solution which might work but is far away from a standard-syntax (itís only misusing an existing header element)
and from what it looks like and what I know from old quirky browsers this might not be bullet-proof.

Received on Tuesday, 12 November 2013 08:22:43 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:14 UTC