Skip to content

"TypeError: Assignment to constant variable" when testing some URLs #321

Open
@malcomio

Description

@malcomio

Steps to reproduce

  1. install the bookmarklet
  2. visit one of the following URLs:
    1. https://www.transizionedigitale.it/
    2. https://www.neso.energy/
  3. click the bookmarklet

Expected result

The sniffer should run and report any issues

Actual result

The test does not complete
Errors in console:

Uncaught TypeError: Assignment to constant variable.
    at Object.testNullAltText (HTMLCS.js:24:223570)
    at Object.addNullAltTextResults (HTMLCS.js:24:222007)
    at Object.process (HTMLCS.js:24:221802)
    at m (HTMLCS.js:24:288483)
    at c (HTMLCS.js:24:288090)
    at Object.run (HTMLCS.js:24:287448)
    at HTMLCS.js:24:286284
    at HTMLCS.js:24:286545
    at h (HTMLCS.js:24:289153)
    at HTMLCS.js:24:289131

Originally raised as pa11y/pa11y#709

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