squizlabs / HTML_CodeSniffer

HTML_CodeSniffer is a client-side JavaScript application that checks a HTML document or source code, and detects violations of a defined coding standard. Comes with standards that cover the three conformance levels of the W3C's Web Content Accessibility Guidelines (WCAG) 2.0 and the U.S. Section 508 legislation.
https://squizlabs.github.io/HTML_CodeSniffer/
BSD 3-Clause "New" or "Revised" License
1.12k stars 246 forks source link

Uncaught TypeError: o is undefined #318

Open Lucas-C opened 10 months ago

Lucas-C commented 10 months ago

Hi!

When using the bookmarklet on https://renardeau.chezsoi.org/, when clicking on "View Report", I get the following error in the developper console:

Uncaught TypeError: o is undefined
    v https://squizlabs.github.io/HTML_CodeSniffer/build/HTMLCS.js:24
    build https://squizlabs.github.io/HTML_CodeSniffer/build/HTMLCS.js:24
    onclick https://squizlabs.github.io/HTML_CodeSniffer/build/HTMLCS.js:24

It seems to come from this code line: https://github.com/squizlabs/HTML_CodeSniffer/blob/2.5.1/Auditor/HTMLCSAuditor.js#L692

message.msg is seemingly undefined

As a consequence, I cannot consult the report, and sadly this great tool is unusable to me