W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

Re: [whatwg] runat (or "server") attribute

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 14 May 2012 12:06:12 +0200
Message-ID: <CADnb78inJT93qZhUguWsxxneZtvRda3WkV_0oT0Sv-gr=Q+FcA@mail.gmail.com>
To: ash@ashleysheridan.co.uk
Cc: whatwg <whatwg@whatwg.org>, Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>, Brett Zamir <brettz9@yahoo.com>
On Sun, May 13, 2012 at 6:24 PM, Ashley Sheridan
<ash@ashleysheridan.co.uk> wrote:
> On Sun, 2012-05-13 at 17:16 +0200, Anne van Kesteren wrote:
>> Just use type="text/server-js"...
>
> Is that really a good idea? It seems odd to use a mime type for such a
> reason.

1) It makes it backwards compatible and therefore works today (modulo
server-side changes). 2) Server-side JavaScript is not fully
compatible with client-side JavaScript (other libraries for instance)
so deserves a type other than text/javascript.


-- 
Anne — Opera Software
http://annevankesteren.nl/
http://www.opera.com/
Received on Monday, 14 May 2012 10:06:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT