[whatwg] runat (or "server") attribute

Anne van Kesteren annevk at annevk.nl
Mon May 14 03:06:12 PDT 2012

On Sun, May 13, 2012 at 6:24 PM, Ashley Sheridan
<ash at 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

More information about the whatwg mailing list