Acceptable Scripting Media type for CSS 2.1 test suite (review purposes)

Hello all,

What are the acceptable, adequate script media types for CSS 2.1 test
suite?

type="text/javascript" is definitely ok but what about
type="application/javascript" ?
and what about type="application/ecmascript" ?

I am a reviewer and this question needs to be eventually addressed. For
several reasons.

1- The test format guidelines
http://wiki.csswg.org/test/css2.1/format
makes no mention of this matter.

2- The CSS2.1 Test Case Authoring Guidelines
http://www.w3.org/Style/CSS/Test/guidelines.html#content-style-type
recommends
<meta http-equiv="Content-Script-Type" content="text/javascript"/> but
that's for inline script (event handler) attributes, not locally
embedded script blocks.

3- RFC 4329
http://www.rfc-editor.org/rfc/rfc4329.txt
(RFC 4329 was published in April 2006 and RFC 4329 was discussed and
approved as soon as June 2005.) has obsoleted "text/javascript" and has
recommended type="application/javascript" or
type="application/ecmascript".

4- Internet Explorer 8 does NOT support type="application/javascript".
We even filed bug 338278
https://connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=338278
on this precise issue and we backed/substantiated our requests with
Bertrand Le Roy article
http://weblogs.asp.net/bleroy/archive/2007/09/17/should-i-use-a-type-attribute-on-script-tags.aspx
, with RFC 4329 and with Robin Lionheart's HTML 4 conformance test
results.

5- This issue is not theoretical or odd. A bunch of submitted testcases
use <script type="application/javascript">
And that can make IE8 (and possibly other user agents) fail 100% of the
time the testcases... which were originally intended to test CSS
compliance in the first place... and not test RFC 4329 compliance.

regards, Gérard
-- 
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

CSS 2.1 test suite (beta 1; July 1st 2010):
http://test.csswg.org/suites/css2.1/20100701/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/

Received on Sunday, 4 July 2010 22:47:59 UTC