Skip to content

HTML script tags: Authors are encouraged to omit the type attribute if the script refers to JavaScript code rather than specify a MIME type #2344

@jbampton

Description

@jbampton

In the codebase I see script tags like:

<script type="text/javascript">

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type

  • Attribute is not set is the default

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions