Skip to content

TypeError: Cannot read properties of null (reading 'classList') #615

@VladimirAlexiev

Description

@VladimirAlexiev

Steps (Chrome Version 140.0.7339.208 (Official Build) (64-bit) on Windows)

The resource https://www.w3.org/Tools/respec/respec-highlight was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
  • click on JSON-LD
  • Browser says "Paused in debugger" and shows this:
Image
  • click back on Turtle: no code block is shown
  • the console shows:
index.html#example-6:1 Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was receivedUnderstand this error
respec.js:6 TypeError: Cannot read properties of null (reading 'classList')
    at button.onclick (index.html:100:53) "Uncaught TypeError: Cannot read properties of null (reading 'classList')" ErrorEvent {isTrusted: true, message: "Uncaught TypeError: Cannot read properties of null (reading 'classList')", filename: 'https://raw.githack.com/w3c/data-shapes/master/shacl12-core/index.html', lineno: 100, colno: 53, …}
(anonymous) @ respec.js:6Understand this error
index.html:100 Uncaught TypeError: Cannot read properties of null (reading 'classList')
    at button.onclick (index.html:100:53)

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