Skip to content

[Bug] Duplicate type attribute on script tag in popup.html #549

@PhilixTheExplorer

Description

@PhilixTheExplorer

Bug Description

There is a duplicate type="text/javascript" attribute on the script tag importing materialize.min.js in the src/popup.html file.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Open the file src/popup.html in the repository.
  2. Scroll down to the bottom of the file (line 616).
  3. Observe the script tag: <script type="text/javascript" type="text/javascript" src="materialize/js/materialize.min.js"></script>.
  4. See the duplicated type attribute.

Expected Behavior

The <script> tag should only contain a single type="text/javascript" attribute, or omit it entirely as it is the default for JavaScript in HTML5.

Actual Behavior

The <script> tag includes type="text/javascript" twice, which is invalid HTML syntax.

Screenshots

N/A

Additional Context

While modern browsers gracefully handle duplicate attributes by ignoring the subsequent ones, this causes HTML validation to fail. Removing the duplicate cleans up the codebase and ensures standard compliance.


Contribution Checklist

  • I have searched existing issues to ensure this bug hasn't been reported
  • I have provided clear reproduction steps
  • I have included relevant environment details
  • I have described both expected and actual behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions