browser-compat-data icon indicating copy to clipboard operation
browser-compat-data copied to clipboard

api.SVGElement.error_event - The event is fired only on image in implementations

Open Kaiido opened this issue 3 years ago • 0 comments

What type of issue is this?

Missing compatibility data

What information was incorrect, unhelpful, or incomplete?

The table states only about a general error event, but this doesn't say on which element this event is supported.
Per specs the error event should fire for all structurally external element, so ‘foreignObject’, ‘image’, ‘script’ and ‘use’. This event is also supposed to bubble.

UAs only fire it on <image> and it doesn't even bubble (Chromium does also fire script errors on the root <svg> in standalone documents).

What browsers does this problem apply to, if applicable?

Chromium (Chrome, Edge 79+, Opera, Samsung Internet), Firefox, Safari

What did you expect to see?

Maybe a list like

error bubbles: (none)
error on <image>: (all)
error on <use>: (none)
error on <foreignObject>: (none)
error on <script>: (none)
error on <svg> for script errors: (Chromium only)

Did you test this? If so, how?

https://jsfiddle.net/6b0eLg13/

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

No response

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/error_event

MDN metadata

MDN page report details
  • Query: api.SVGElement.error_event
  • Report started: 2022-08-18T01:58:28.124Z

Kaiido avatar Aug 18 '22 02:08 Kaiido