Skip to content

[Learn] Remove redundant "type=text/javascript" in inline scripts #1046

Open
@codersjj

Description

@codersjj

The example code in Updating UI with JavaScript currently uses:

<script type="text/javascript"></script>

As per the HTML5 spec:

"Authors should omit the type attribute instead of redundantly setting it."

Suggested fix:

- <script type="text/javascript"></script>
+ <script></script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions