Skip to content

Wrong reference in jsm vs js file extension guide #43662

@rugk

Description

@rugk

MDN URL

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules

What specific section or headline is this issue about?

Aside — .mjs versus .js

What information was incorrect, unhelpful, or incomplete?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#aside_%E2%80%94_.mjs_versus_.js

It says at the end:

The <script type="module"> attribute is used to denote when a module is being pointed to, as you'll see below.

That "as you can see below" is a broken reference (and also not properly linked).

I Mena technically the part comes below, but veery far later so imho this is confusing. In particular the direct section below is not at all related to this.

What did you expect to see?

A link to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#applying_the_module_to_your_html

Do you have any supporting links, references, or citations?

Maybe there are other solutions?

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:JSJavaScript docsneeds triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions