From 87ecd84917adabe4d4f4601643e6a56a459a6508 Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Tue, 2 Oct 2018 18:35:58 -0400 Subject: [PATCH 1/3] bpo-34875: change .js mimetype to text/javascript --- Lib/mimetypes.py | 2 +- .../next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index f25872102b8c27..d5b83f8e4f71d2 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -436,7 +436,7 @@ def _default_mime_types(): '.jpe' : 'image/jpeg', '.jpeg' : 'image/jpeg', '.jpg' : 'image/jpeg', - '.js' : 'application/javascript', + '.js' : 'text/javascript', '.json' : 'application/json', '.ksh' : 'text/plain', '.latex' : 'application/x-latex', diff --git a/Misc/NEWS.d/next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst b/Misc/NEWS.d/next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst new file mode 100644 index 00000000000000..8738c33b0cf3db --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst @@ -0,0 +1,3 @@ +Change mimetype for file extension ``.js`` to ``test/javascript``. This is currently the recommended mimetype in the whatwg HTML spec + +https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguages:javascript-mime-type \ No newline at end of file From 69b39760eb7599c92d7c11fb417d77c75709a99b Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Tue, 2 Oct 2018 18:58:25 -0400 Subject: [PATCH 2/3] fixup: remove :javascript from news --- .../next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst b/Misc/NEWS.d/next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst index 8738c33b0cf3db..52c52a1875968d 100644 --- a/Misc/NEWS.d/next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst +++ b/Misc/NEWS.d/next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst @@ -1,3 +1,3 @@ Change mimetype for file extension ``.js`` to ``test/javascript``. This is currently the recommended mimetype in the whatwg HTML spec -https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguages:javascript-mime-type \ No newline at end of file +https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguages From 89212c79421f2ec9bc91176dcdf43ad5b44e06f9 Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Wed, 3 Oct 2018 14:22:44 -0400 Subject: [PATCH 3/3] fixup: fix speeling errror --- .../next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst b/Misc/NEWS.d/next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst index 52c52a1875968d..79f1b09cff2dc6 100644 --- a/Misc/NEWS.d/next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst +++ b/Misc/NEWS.d/next/Library/2018-10-02-18-33-30.bpo-34875.8Js9dJ.rst @@ -1,3 +1,3 @@ -Change mimetype for file extension ``.js`` to ``test/javascript``. This is currently the recommended mimetype in the whatwg HTML spec +Change mimetype for file extension ``.js`` to ``text/javascript``. This is currently the recommended mimetype in the whatwg HTML spec https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguages