Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/SVGElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@
"version_added": "12"
},
"firefox": {
"alternative_name": "SVGLoad",
"version_added": "4",
"notes": "See [bug 620002](https://bugzil.la/620002) for implementation status of the standard `load` event."
"partial_implementation": true,
"notes": "Firefox uses a non-standard `SVGLoad` event. See [bug 620002](https://bugzil.la/620002) for implementation status of the standard `load` event."
Comment on lines +413 to +414
Copy link
Copy Markdown
Contributor

@caugner caugner May 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about setting partial here. What is the impact of using the non-standard SVGLoad event?

The spec mentions:

In previous SVG specifications the load event was called SVGLoad and could be dispatched immediately after parsing an element but before the related resource(s) were fully loaded.

I could therefore imagine that Chrome and Safari also used this deprecated (?!) SVGLoad event.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the spec, I'm not seeing anything that stands out as notable about the SVGLoad event from a web developer perspective. Perhaps a note isn't even needed!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on that paragraph and the load event description:

The load event is dispatched only to structurally external elements and to the Window, when the corresponding external resources have finished loading.

We could have a subfeature "Dispatches after external resources are loaded".

@queengooborg What do you think?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PS: I think the alternative_name is correct, as you need to do svg.addEventListener("SVGLoad", listener), see: https://github.com/search?q=%2FaddEventListener%5C%28%5B%22%27%5DSVGLoad%5B%22%27%5D%2F&type=code

},
"firefox_android": "mirror",
"ie": {
Expand Down