GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Change .js mime to "text/javascript" · Issue #79056 · python/cpython

Change .js mime to "text/javascript" #79056

New issue
Copy link
New issue
Copy link
Closed
Closed
Change .js mime to "text/javascript"#79056
Copy link
Labels
3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixes3.12only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-email

Description

MylesBorins
mannequin
opened on Oct 2, 2018
Issue body actions
BPO 34875
Nosy @asvetlov, @ammaraskar, @MylesBorins, @180909, @arhadthedev
PRs
  • bpo-34875: change .js mimetype to text/javascript #9678
  • bpo-34875:Change .js and .mjs mime to text/javascript #30740
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2018-10-02.22:28:39.501>
    labels = ['library', '3.9', '3.10', '3.11']
    title = 'Change .js mime to "text/javascript"'
    updated_at = <Date 2022-01-21.11:06:31.601>
    user = 'https://github.com/MylesBorins'

    bugs.python.org fields:

    activity = <Date 2022-01-21.11:06:31.601>
    actor = 'arhadthedev'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2018-10-02.22:28:39.501>
    creator = 'mylesborins'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34875
    keywords = ['patch']
    message_count = 7.0
    messages = ['326920', '326923', '327006', '327007', '327010', '345883', '411109']
    nosy_count = 5.0
    nosy_names = ['asvetlov', 'ammar2', 'mylesborins', 'wangjiahua', 'arhadthedev']
    pr_nums = ['9678', '30740']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue34875'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Activity

    1. MylesBorins commented on Oct 2, 2018

      @MylesBorins
      MylesBorinsmannequin
      on Oct 2, 2018
      MannequinAuthor
      More actions

      I propose to change the mapping of file extension .js to mime type "text/javascript" from "application/javascript.

      "text/javascript" is the currently documented best practice in the whatwg HTML spec.

      https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguages:javascript-mime-type

    2. MylesBorins
      added
      3.7 (EOL)end of lifeend of life
      3.8 (EOL)end of lifeend of life
      stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
      on Oct 2, 2018
    3. ammaraskar commented on Oct 2, 2018

      @ammaraskar
      ammaraskar
      on Oct 2, 2018
      Member
      More actions

      It should be noted that the HTML spec also says:

      The term "JavaScript" is used to refer to ECMA-262, rather than the official term ECMAScript, since the term JavaScript is more widely known. Similarly, the MIME type used to refer to JavaScript in this specification is text/javascript, since that is the most commonly used type, despite it being an officially obsoleted type according to RFC 4329.

      https://html.spec.whatwg.org/#dependencies:willful-violation

    4. asvetlov
      changed the title [-]Change .js mime to "test/javascript"[/-] [+]Change .js mime to "text/javascript"[/+] on Oct 3, 2018
    5. asvetlov commented on Oct 3, 2018

      @asvetlov
      asvetlov
      on Oct 3, 2018
      Contributor
      More actions

      By RCF 4329 https://tools.ietf.org/html/rfc4329#page-9 text/javascript is obsoleted, application/javascript is a part of the standard.

      WhatWg is a controversial group. Their specs don't always follow official standards but Python does.

      Sorry, I should decline the proposal.

      Feel free to raise an issue again if IETF will change their opinion.

    6. asvetlov
      closed this as completedon Oct 3, 2018
    7. MylesBorins commented on Oct 3, 2018

      @MylesBorins
      MylesBorinsmannequin
      on Oct 3, 2018
      MannequinAuthor
      More actions

      There is a IETF proposal that would make "text/javascript" no longer obsolete.

      Will revisit at the point this lands

      https://datatracker.ietf.org/doc/draft-ietf-dispatch-javascript-mjs/

    8. asvetlov commented on Oct 3, 2018

      @asvetlov
      asvetlov
      on Oct 3, 2018
      Contributor
      More actions

      We can return to the question when (and if) the draft will be accepted.

    9. MylesBorins commented on Jun 17, 2019

      @MylesBorins
      MylesBorinsmannequin
      on Jun 17, 2019
      MannequinAuthor
      More actions

      Hey All,

      I'd like to reopen this. We are almost done with the IETF standardization of .mjs, and part of this process is making obsolete application/javascript in favor of text/javascript.

      --> https://datatracker.ietf.org/doc/draft-ietf-dispatch-javascript-mjs/

    10. MylesBorins
      reopened this on Jun 17, 2019
    11. iritkatriel
      added
      3.9 (EOL)end of lifeend of life
      3.10 (EOL)end of lifeend of life
      3.11only security fixesonly security fixes
      and removed
      3.7 (EOL)end of lifeend of life
      3.8 (EOL)end of lifeend of life
      on Jan 17, 2022
    12. arhadthedev commented on Jan 21, 2022

      @arhadthedev
      arhadthedev
      on Jan 21, 2022
      Member
      More actions

      Myles, it looks like the draft 14 contains a mismatch in 6.2.1:

      6.2.1. text/ecmascript

      Type name: application
      Subtype name: ecmascript

      In header it's text, in details it's application. Is it intended?

      I believe that a typo wouldn't pass though fourteen revisions but nevertheless, just to be safe.

    13. ezio-melotti
      transferred this issue fromon Apr 10, 2022
    14. mathiasbynens commented on May 10, 2022

      @mathiasbynens
      mathiasbynens
      on May 10, 2022
      More actions

      Following up to this old thread + this earlier discussion: RFC 9239 now unequivocally resolves this disagreement. Patch: #92627

    15. AA-Turner
      added
      3.12only security fixesonly security fixes
      topic-email
      and removed
      3.9 (EOL)end of lifeend of life
      on May 27, 2022
    16. encukou commented on Mar 26, 2024

      @encukou
      encukou
      on Mar 26, 2024
      Member
      More actions

      This was reported later in #97646, and changed in #97934 (Python 3.12).

      Reacted by Mathias Bynens
    17. encukou
      closed this as completedon Mar 26, 2024
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixes3.12only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-email

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions

        You are visitor 01402503 — GeezerVison does not store the pages you look up.
        Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.