These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:06 pm Advanced search

Accessiblity of embed

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.

Accessiblity of embed

Postby 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

Postby JAB Creations » Fri Apr 03, 2009 9:31 pm

Time to look up alternative content related to the object element.
User avatar
JAB Creations
<aside>
 
Posts: 566
Joined: Tue Mar 13, 2007 4:48 am
Location: Sarasota Florida, USA

Postby 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

noembed

Postby 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

Postby 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? :shock:
User avatar
JAB Creations
<aside>
 
Posts: 566
Joined: Tue Mar 13, 2007 4:48 am
Location: Sarasota Florida, USA

Postby 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 1 guest