It is currently Sat Dec 02, 2017 4:16 pm
Advanced search
Do you think the HTML spec should do something differently? You can discuss spec feedback here, but you should send it to the WHATWG mailing list or file a bug in the W3C bugzilla for it to be considered.
by legendscrolls » Fri Apr 03, 2009 9:19 am
I'm no fan of <embed> but having <embed> as a void element is not accessible.
HTML 5 should keep it as a normal element and some web browsers require a <noembed></noembed> child element to hide the alternate content when the plugin is successful.
(Insidently <img> should have been a normal element too with alternate content as element content rather than the restriction of an attribute but I know that can't be changed for compatibility and I know <object></object> provides a better way but it isn't the same.)
-
legendscrolls
- <h6>
-
- Posts: 6
- Joined: Wed Jan 09, 2008 11:57 am
-
by JAB Creations » Fri Apr 03, 2009 9:31 pm
Time to look up alternative content related to the object element.
-
JAB Creations
- <aside>
-
- Posts: 566
- Joined: Tue Mar 13, 2007 4:48 am
- Location: Sarasota Florida, USA
by zcorpan » Sat Apr 04, 2009 8:15 am
embed can't be changed from being a void element, either, unfortunately.
-
zcorpan
- <article>
-
- Posts: 807
- Joined: Tue Feb 06, 2007 8:29 pm
- Location: Sweden
by legendscrolls » Sat Apr 04, 2009 2:15 pm
I've never seen <embed> used as a void element before, interesting.
Anyway, <noembed></noembed> should at least be added (as a sibling) to HTML 5 as even Firefox and Opera will show the alternative content with the successful plugin in the typical old ie-object-others-embed sample:
<object classid="clsid:..." ...>
<param ...>
<embed ...>
<span>Marketing Advertisement Video</span>
</object>
rather than:
<object classid="clsid:..." ...>
<param ...>
<embed ...>
<noembed><span>Marketing Advertisement Video</span></noembed>
</object>
At least for text/html documents.
-
legendscrolls
- <h6>
-
- Posts: 6
- Joined: Wed Jan 09, 2008 11:57 am
-
by JAB Creations » Sat Apr 04, 2009 7:04 pm
Alternative content works perfectly fine in at least IE6+ when tested on my site. Uninstall the Flash plugin and test the music player in example. You'll see the ALT image/anchor content. I've never seen any actual need for the embed element. Maybe you're thinking Netscape 4?
-
JAB Creations
- <aside>
-
- Posts: 566
- Joined: Tue Mar 13, 2007 4:48 am
- Location: Sarasota Florida, USA
by zcorpan » Thu Apr 09, 2009 8:10 am
<noembed> only works when plusings are disabled altogether in the browser, not when a particular plugin has failed to load on the page. So, if you want fallback for plugin content, use just <object>.
-
zcorpan
- <article>
-
- Posts: 807
- Joined: Tue Feb 06, 2007 8:29 pm
- Location: Sweden
Return to Feedback on the Specs
Who is online
Users browsing this forum: No registered users and 0 guests