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

>> Just use type="text/server-js"...
> Is that really a good idea? It seems odd to use a mime type for such a
> reason.

I thought it was quite a nice idea.

Why would it not be? It's describing what's in the script tag, just like it's supposed to do. It's even a quite much used pattern for doing client side templates <script type="text/template"> on the web today.

Mime types are not magical any more. Before we could make our own text/x-whatever, but prefixes are not really any use. If you want something specific to your program you could always use something specific as prefix, -- but for this use case just doing  text/server-js  seems rather nice :-)

--
Odin Hørthe Omdal (odinho, Velmont)

Received on Sunday, 13 May 2012 17:46:26 UTC