Giter VIP home page Giter VIP logo

i-d's People

Contributors

bmeck avatar linuxwolf avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

i-d's Issues

who will implement goal?

In #16 it became apparent that maybe nobody plans to implement goal. If that's the case I don't think we should add it.

Error in Section 4. Registration

Within Section 4. Registration is stated:

The ECMAScript media types are to be updated to point to a non-vendor
specific standard undated specification of ECMAScript. In addition,
a new file extension of .mjs is to be added to the list of file
extensions with the restriction that it must correspond to the Module
grammar of [ECMA-262]. Finally, the [HTML] specification is using
text/javascript as the default media type of ECMAScript when
preparing script tags; therefore, text/javascript has been moved
intended usage from OBSOLETE to COMMON.

Issue(s)

  1. This proposal also changes application/ecmascript from COMMON to OBSOLETE. The list of javascript MIME types has been addressed ad nauseam in the past and would not like to revisit the pushback and waste of time seen when attempting to update the MIME list previously. Also, there are some applications that indeed respond with application/ecmascript which works perfectly fine within the script parser.

  2. The file extension is changed from .es to .js for application/ecmascript while also adding .mjs. Adding .mjs file extension shouldn't cause this extension to be obsoleted. If it does then should be driven by real world use cases which would cause this to be obsolete. IMHO this is out of scope to adding .mjs.

Recommendation(s)

The proposal at maximum should merely make the proper .mjs addendum to application/ecmascript.

Thank you for your time @bmeck

rephrase usage restriction

Given whatwg/html#558 , we might want to rephrase the usage restriction. I am still intending the restriction to apply to all applications using .mjs + JS MIME but we might be able to find a better wording.

Mistype: «appliaction/ecmascript» instead of «application/ecmascript»

From #kde-devel:

‎[17:50] ‎<‎tosky‎>‎ chalker_: that's really new - and there is a typo: "4.1 appliaction/ecmascript" instead of application/ecmascript
‎[17:50] ‎<‎tosky‎>‎ not sure how to report it (if you know please do :)

That is currently present in https://datatracker.ietf.org/doc/draft-ietf-dispatch-javascript-mjs

It looks to be present in several places here.

Full search: https://github.com/bmeck/I-D/search?q=appliaction&type=Code

Typo in reference title

There's a small typo in the "Informative References" section:

ambiguity5", August 2017, <https://web.archive.org/web/201

The title of the issue has an extra 5 at the end:

  • "Add `application/javascript+module` mime to remove ambiguity5" (current)
  • "Add `application/javascript+module` mime to remove ambiguity" (fixed)

(Also, the new line in the URL breaks the link in the HTML-rendered version)

comments on initial draft

Thanks for carrying this torch!

Note throughout that the proper capitalization is ECMAScript not EcmaScript

ECMA-262: author: org: European Computer Manufacturers Association title: "Standard ECMA-262" date: August 2017 target: http://www.ecma-international.org/publications/standards/Ecma-262-arch.htm

I'd reference this as:

ECMA-262: author: org: Ecma International title: "Standard ECMA-262: ECMAScript Language Specification" date: August 2017 target: http://www.ecma-international.org/publications/standards/Ecma-262.htm

because the Ecma-262.htm link will always contain information about the most current edition of the standard. Or perhaps use https://www.ecma-international.org/ecma-262/ which should always take you directly to the html version of the most current edition. In general, we want the revised RFC to have an edition-free reference to ECMA-262 which means use the current edition, whatever that might be.

Also note that the official name of the standards organization has been "Ecma International" for quite a few years.

In the [ECMA-262] 6th Edition of the EcmaScript language standard a new top level grammar was introduced for EcmaScript Modules. This now makes two possible top level grammars for any given Source Text of EcmaScript.

I recommend rewording this so you don't have to reference obsolete versions of ECMA-262. Maybe:

In order to formalize support for modular programs [ECMA-262] now defines two top-level goal symbols for the ECMAScript grammar. This means that (in the absence of additional information) there are two possible interpretations for any given ECMAScript Source Text.

(BTW, it seems to me that this and subsequent material makes a strong argument for the application/javascript+module. If MIME types are supposed to be the mechanism that conveys out-of-band info on how to interpret a document and out-of-band info is needed to choose the correct parsing goal symbol for ECMAScript documents then the MIME type needs to encode that info. The fact that HTML has another mechanism doesn't seem adequate because it doesn't account for non-HTML agents that need to use MIME types to transmit ECMAScript documents).

Minor nits

Nits for the next go-round:

  1. The document needs "updates" added to the document metadata
  2. The title is far more narrow than document content (which does more than simply adding a filename extension)
  3. Don't include citations in Abstracts, and give documents some kind of description (e.g. This document updates RFC 4329, "Scripting Media Types".)

cc @linuxwolf at his request

goal parameter not defined in detail

I've seen it used in an ASCII case-insensitive way, but it's not defined as such.

It's also not stated how it's to be used while parsing.

Also, not all hosts are going to use it since this kind of thing was rejected for HTML integration of JavaScript modules. So perhaps there should be some note that not all consumers/clients will use it.

cc @domenic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.