window:error event interface and cancelling #24957
Labels
Content:WebAPI
Web API docs
help wanted
If you know something about this topic, we would love your help!
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Window/error_event
What specific section or headline is this issue about?
event type, usage notes
What information was incorrect, unhelpful, or incomplete?
Event type
Is mentioned that the event type is
UIEvent
.Usage notes
In usage notes is mentioned:
What did you expect to see?
Event type*
If we run this code we'll see in the console that the error is of type
ErrorEvent
.In HTML spec is mentioned the same.
Usage notes
The
return
statement doesn't seem to have an impact, Regardless of the returned value:return true
orreturn false
the error message is displayed in the console. This event it looks like is similar with unhandledrejection andevent.preventDefault()
must be used, so that the message is not printed to the console.Do you have any supporting links, references, or citations?
discussions page
The text was updated successfully, but these errors were encountered: