This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9362 - <embed> should fire 'load' event so that it's more useful for e.g. SVG
Summary: <embed> should fire 'load' event so that it's more useful for e.g. SVG
Status: RESOLVED DUPLICATE of bug 16136
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-28 22:55 UTC by contributor
Modified: 2013-04-25 22:27 UTC (History)
7 users (show)

See Also:


Attachments

Description contributor 2010-03-28 22:55:03 UTC
Section: http://www.whatwg.org/specs/web-apps/current-work/#the-embed-element

Comment:
<embed> should fire 'load' event so that it's more useful for e.g. SVG

Posted from: 85.227.159.51 by simonp@opera.com
Comment 1 Maciej Stachowiak 2010-03-29 05:34:46 UTC
Why not just use <object> or <iframe> or <img> for SVG? <embed> seems like about the worst choice of element to embed it with.
Comment 2 Ian 'Hixie' Hickson 2010-04-02 07:17:47 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: Don't use <embed> with SVG. Use <img>.
Comment 3 Simon Pieters 2010-04-03 02:43:38 UTC
(In reply to comment #1)
> Why not just use <object> or <iframe> or <img> for SVG?

<object> is more verbose (not a lot, but still), <iframe> has a default border and doesn't resize itself after the image, <img> doesn't support scripting.

> <embed> seems like
> about the worst choice of element to embed it with.

Why?

(In reply to comment #2)
> Rationale: Don't use <embed> with SVG.

Why not?

> Use <img>.

<img> doesn't support scripting.
Comment 4 Simon Pieters 2010-04-03 02:44:41 UTC
I think having a load event would also be useful when embedding scripted plugin content.
Comment 5 Maciej Stachowiak 2010-04-04 06:07:24 UTC
(In reply to comment #4)
> I think having a load event would also be useful when embedding scripted plugin
> content.

SVG aside, this use case seems reasonable to me.
Comment 6 Ian 'Hixie' Hickson 2010-04-12 23:36:36 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: Yeah, I could see a use case for firing a load event with regular plugins. At this point though I'd rather not add more features; I think we should wait for what is specced already to be tested and implemented interoperably. This isn't a critical feature since you can already do it fine with <object>.
Comment 7 Michael[tm] Smith 2013-01-24 07:22:21 UTC
This bug was cloned to create HTML WG bug 19033.
Comment 8 Ian 'Hixie' Hickson 2013-03-19 22:38:14 UTC
Would fixing bug 16136 make this moot?
Comment 9 Ian 'Hixie' Hickson 2013-04-25 22:27:11 UTC
I'm just going to let this happen automatically as part of bug 16136.

*** This bug has been marked as a duplicate of bug 16136 ***