W3C home > Mailing lists > Public > public-html-comments@w3.org > July 2010

Script tag and accept header

From: Jonathan Leibiusky <ionathan@gmail.com>
Date: Mon, 26 Jul 2010 18:15:54 -0300
Message-ID: <AANLkTiki-zoguSVarr1vQCZ0c_me05Opy3Yr_QdfZgFk@mail.gmail.com>
To: public-html-comments@w3.org
Hi everyone!
I have a small doubt regard the accept header of the script tag. It seems
like even if I add a type attribute "text/javascript" the GET for the src
attribute accepts */*, which doesn't seem right to me since I am setting the
script to be javascript and maybe my resource defaults to text/html.
Following the HTTP standard when requesting */* I can default my
content-type to whatever I want and actually in this case the script just
accepts javascript.
Do you think it is a bug in the specs?
I've checked the docs and there is nothing about the accept header of the
script tag. Also I've checked this behavior on Firefox and it is sending a
*/* accept header.

Thanks!

Jonathan
Received on Thursday, 29 July 2010 06:35:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 00:14:04 GMT