Re: [media-types] [dispatch] AD review of draft-ietf-dispatch-javascript-mjs-09

Ben Campbell <ben@nostrum.com> Tue, 24 August 2021 18:49 UTC

Return-Path: <ben@nostrum.com>
X-Original-To: media-types@ietfa.amsl.com
Delivered-To: media-types@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 97AEA3A0BEC; Tue, 24 Aug 2021 11:49:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.28
X-Spam-Level:
X-Spam-Status: No, score=-0.28 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, KHOP_HELO_FCRDNS=0.399, MAY_BE_FORGED=1, T_SPF_HELO_PERMERROR=0.01, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=nostrum.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KnwjcFiHecKK; Tue, 24 Aug 2021 11:49:27 -0700 (PDT)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A09563A0BE9; Tue, 24 Aug 2021 11:49:27 -0700 (PDT)
Received: from smtpclient.apple (mta-70-120-133-87.satx.rr.com [70.120.133.87] (may be forged)) (authenticated bits=0) by nostrum.com (8.16.1/8.16.1) with ESMTPSA id 17OInMTj088799 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 24 Aug 2021 13:49:24 -0500 (CDT) (envelope-from ben@nostrum.com)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nostrum.com; s=default; t=1629830964; bh=hAKIgssZqQooNpsmqkZa/SZWduOniMtLgzBxBY6Rywk=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=ZyApZIT8HoD/0QZD2mCpo36W4RgEEISTqu6N90QLKBal1e6X0S/7MHyYQ7EI+4E86 uA0F7Vos44bl9kP0P/WFPwzE7Ygdu7TeRKyMzWbs2cQFYgfEbnMVuofmICpwI7g4a7 Ot73PTAKNYAX1iDbNke0UffZTI3L5LMWWZZzaqXQ=
X-Authentication-Warning: raven.nostrum.com: Host mta-70-120-133-87.satx.rr.com [70.120.133.87] (may be forged) claimed to be smtpclient.apple
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\))
From: Ben Campbell <ben@nostrum.com>
In-Reply-To: <4747725C-5B58-4CCF-8C05-856A02FE7055@ericsson.com>
Date: Tue, 24 Aug 2021 13:49:17 -0500
Cc: "draft-ietf-dispatch-javascript-mjs.all@ietf.org" <draft-ietf-dispatch-javascript-mjs.all@ietf.org>, "dispatch@ietf.org" <dispatch@ietf.org>, "media-types@ietf.org" <media-types@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <9E825A5C-0A00-4729-8639-35D5279E0931@nostrum.com>
References: <4747725C-5B58-4CCF-8C05-856A02FE7055@ericsson.com>
To: Francesca Palombini <francesca.palombini=40ericsson.com@dmarc.ietf.org>
X-Mailer: Apple Mail (2.3654.100.0.2.22)
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/FqhNoddMw0bg77Unf2n30bMN4Kk>
Subject: Re: [media-types] [dispatch] AD review of draft-ietf-dispatch-javascript-mjs-09
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IANA mailing list for reviewing Media Type \(MIME Type, Content Type\) registration requests." <media-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/media-types>, <mailto:media-types-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/media-types/>
List-Post: <mailto:media-types@ietf.org>
List-Help: <mailto:media-types-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/media-types>, <mailto:media-types-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Aug 2021 18:49:33 -0000

(as shepherd)

Hi Francesca,

I have a comment on point 1, below. I will leave the other points to the authors. 

Thanks!

Ben.


> On Aug 24, 2021, at 10:49 AM, Francesca Palombini <francesca.palombini=40ericsson.com@dmarc.ietf.org> wrote:
> 
> Thank you for the work on this document. This is my AD review.
> 
> I have divided comments into "main", "minor" and "nits". I'd like to have a discussion on my main comments before requesting the IETF Last Call. On the other hand, you can address the minors and nits together with any additional Last Call comments you will get. As I am coming in late to the process, please understand that I don't mean to re-hash existing discussions that I am not aware of, and I appreciate your patience: feel free to point me to previous discussion (and conclusions) I might have missed, if relevant.
> 
> For the minor comments - some of these are suggestions or questions which I hope will help improve readability, which you can decide to take or leave as you please.
> 
> Francesca
> 
> ## Main
> 
> 1. ----
> 
> FP: This document is presented in the Abstract, Introduction and Compatibility section as aiming to update some IANA registrations for the media types mentioned, as well as documenting current usage of these media types. Because of that, I am not convinced about the use of BCP 14 language: if the intent is documenting current practices, most of these BCP 14 terms should be replaced by explanations on how implementations behave. To give an example of my concern, for the following paragraph in Section 4:
> 
>   Implementations that support binary source text MUST support binary
>   source text encoded using the UTF-8 [RFC3629] character encoding
>   scheme.  Module goal sources MUST be encoded as UTF-8, all other
>   encodings will fail.  Source goal sources SHOULD be encoded as UTF-8;
>   other character encoding schemes MAY be supported, but are
>   discouraged.
> 
> FP: Are these requirements that should have been there in RFC 4329 and are being added now? Are these how most implementations already behave? Would it not make more sense to reformulate this paragraph to describe implementations behaviour, rather than mandate and recommend? Why using BCP 14 terms?
> This comment applies to all new occurrences of BCP 14 terms (it does not to apply to sections taken from RFC 4329, such as the first paragraph of section 4.1).

Most of the upper-case normative terms are leftovers from RFC 4329. The text you quote adds a MUST and SHOULD to a paragraph that already had BCP 14 language in order to match the existing style. I think the use of BCP 14 was a mistake for RFC 4329, but this draft did not undertake fixing every flaw in the RFC. 

Rewriting all the previously existing BCP 14 language would be a pretty big undertaking at this stage. Would it be reasonable to leave that as is, and add some explanatory text about it to the introduction?

> 
> 2. ----
> 
> FP: Maybe more of a question: why is the "Encoding considerations" field in all subsections of section 6.1 "binary"? RFC 4329 did have more text about the encoding, is that obsoleted? Did I miss in which part of the draft this is discussed?
> 
> 3. ----
> 
> FP: "Published specification" field of each subsection of section 6.1 is "this document". I don't believe that is correct, and it should instead point to the correct specification (so JS 1.5, ECMAScript etc).
> 
> 4. ----
> 
> FP: I would also add RFC 4329 authors as "Person & email address to contact", as well as "Author" for those media types that 4329 registered. Please let me know if this is not common practice, but it seems logical to me to have both you authors and previous authors.
> 
> 5. ----
> 
> FP: I believe it would make sense to modify the IANA media type registry to add an "OBSOLETED in favor of ..." note in the name column of all those media types obsoleted. I think this requires a new IANA section.
> 
> 6. ----
> 
> FP: There are 4 occurrences of media types where Intended usage is OBSOLETE, but the Restriction on usage does not have the same sentence as all the other obsolete ones:
> 
>  This media type is obsolete; current
>      implementations should use text/javascript as the only JavaScript/
>      ECMAScript media type.
> 
> I think this is an overlook, is that correct?
> 
> ## Minor
> 
> 7. -----
> 
> FP: Please consider adding some text in the introduction mentioning that this document expands on the security considerations. I appreciate this work on the Security Considerations section was done, and believe the BCP 14 terms make sense there. It should just be highlighted better in the introductory part of the document.
> 
> 8. -----
> 
> FP: I am not sure RFC3986 and RFC3987 need to be a normative reference, given the only place they appear is a paragraph stating how this document does not define processing of fragment identifiers.
> 
> 9. -----
> 
> FP: I'd suggest adding section numbers when referring to [ECMA-262] sections, instead of just names.
> 
> 10. -----
> 
>   javascript.  Differences in ECMAScript versions have been better
>   dealt with in the processors.
> 
> FP: "in the processors" - I am not sure what is meant here, might be worth considering rephrasing for clarity.
> 
> 11. -----
> 
>   Refer to [RFC6265] for a discussion of terminology used in this
>   section.  Source text (as defined in [ECMA-262], section "Source
> 
> FP: I am confused by what part of 6265 is relevant regarding terminology used in this section. Maybe adding a section pointer would help.
> 
> 12. -----
> 
>   separately for purposes of external storage and retrieval.  An
>   implementation's internal representation of source text and source
>   text are not considered binary source text.
> 
> FP: I have a hard time parsing "and source text", in the context of the sentence. What's the difference with "an implementation's internal representation of source text"? (this might be me not understanding the phrasing)
> 
> 13. -----
> 
> FP: Section 6 - IANA Considerations: please consider adding a link to the media type registry.
> 
> ## Nit
> 
> 14. ----
> 
>   of additional scripts, called importing.  Implementations that
>   support modules need to process imported sources in the same way
>   scripts.  Further, there may be additional privacy and security
> 
> FP: "in the same way script" - is it missing an "as"?
> 
> 
> _______________________________________________
> dispatch mailing list
> dispatch@ietf.org
> https://www.ietf.org/mailman/listinfo/dispatch