detecting JS language mode for tools
brendan at mozilla.com
Mon Jan 27 21:14:06 PST 2014
Domenic Denicola wrote:
> From: es-discuss [mailto:es-discuss-bounces at mozilla.org] On Behalf Of Brendan Eich
>> > Examples? What is the specified grammar?
> > From [the HTML spec]:
> Then there's a bunch of other text regarding how the `type` attribute translates into MIME types and how mime types end up translating to "supported scripting languages", ending up at .
Right, that doesn't mean the type can be any old string and have new
meaning, though. More the reverse.
Those are long dead. RFC 4329 defines properly registered IANA media
kill now. But at least it's a media type.
Yes, this is part of the fail-soft nature of HTML. But it does not mean
the HTML grammar allows anything for specified cases -- in fact for
those as you say, it requires an IANA media type. Old content on the web
could today use module and count on content being ignored (not that I
know of any, or think this is likely).
Defining new types should follow the rules, not just extend the domain
of type to random strings we think we can get away with.
More information about the es-discuss