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

Jukka K. Korpela jkorpela at cs.tut.fi
Tue Nov 12 00:08:33 PST 2013


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)






More information about the whatwg mailing list