WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Re: embed element within object tag not validating?

for

Number of posts in this thread: 13 (In chronological order)

From: Kevin Spruill
Date: Fri, Jul 19 2002 8:39AM
Subject: Re: embed element within object tag not validating?
No previous message | Next message →

Mark,

<embed> is deprecated - just use the object tag (remove the embed line
from your page code). That works fine for me in NS4x-6+ and IE5+ on PC -
haven't tried it on the mac yet, but you should be fine I believe,
though you might also want to add a title attribute value.

HK


Kevin Spruill
National Library of Medicine
OCCS
= EMAIL ADDRESS REMOVED =
(301) 402-9708
(301) 402-0367 (fax)
www.nlm.nih.gov

>>> = EMAIL ADDRESS REMOVED = 07/18/02 10:21AM >>>
When validating http://www.gcflearnfree.org with an HTML validator, we
find
out that <embed> is not part of html 4.01 and therefore does not
validate.
We do not use flash often and it is only used as supplemental material
to
information presented. Any ideas on how to make it validate?

TIA,
mark


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: Mark Bryant
Date: Fri, Jul 19 2002 11:13AM
Subject: Re: embed element within object tag not validating?
← Previous message | Next message →

When I removed the <embed>...</embed>, it still worked fine in IE, but not
in Netscape.

-mark

----- Original Message -----
From: "Kevin Spruill" < = EMAIL ADDRESS REMOVED = >
To: < = EMAIL ADDRESS REMOVED = >
Sent: Friday, July 19, 2002 11:31 AM
Subject: Re: embed element within object tag not validating?


> Mark,
>
> <embed> is deprecated - just use the object tag (remove the embed line
> from your page code). That works fine for me in NS4x-6+ and IE5+ on PC -
> haven't tried it on the mac yet, but you should be fine I believe,
> though you might also want to add a title attribute value.
>
> HK
>
>
> Kevin Spruill
> National Library of Medicine
> OCCS
> = EMAIL ADDRESS REMOVED =
> (301) 402-9708
> (301) 402-0367 (fax)
> www.nlm.nih.gov
>
> >>> = EMAIL ADDRESS REMOVED = 07/18/02 10:21AM >>>
> When validating http://www.gcflearnfree.org with an HTML validator, we
> find
> out that <embed> is not part of html 4.01 and therefore does not
> validate.
> We do not use flash often and it is only used as supplemental material
> to
> information presented. Any ideas on how to make it validate?
>
> TIA,
> mark
>
>
> ----
> To subscribe, unsubscribe, or view list archives,
> visit http://www.webaim.org/discussion/
>
>
> ----
> To subscribe, unsubscribe, or view list archives,
> visit http://www.webaim.org/discussion/
>
>


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: Joel Ward
Date: Fri, Jul 19 2002 11:19AM
Subject: Re: embed element within object tag not validating?
← Previous message | Next message →

http://www.blooberry.com/indexdot/html/tagpages/o/object.htm

According to this reference, OBJECT is only available in NN6 and above.


----- Original Message -----
From: "Mark Bryant" < = EMAIL ADDRESS REMOVED = >
To: < = EMAIL ADDRESS REMOVED = >
Sent: Friday, July 19, 2002 2:06 PM
Subject: Re: embed element within object tag not validating?


> When I removed the <embed>...</embed>, it still worked fine in IE, but not
> in Netscape.
>
> -mark
>
> ----- Original Message -----
> From: "Kevin Spruill" < = EMAIL ADDRESS REMOVED = >
> To: < = EMAIL ADDRESS REMOVED = >
> Sent: Friday, July 19, 2002 11:31 AM
> Subject: Re: embed element within object tag not validating?
>
>
> > Mark,
> >
> > <embed> is deprecated - just use the object tag (remove the embed line
> > from your page code). That works fine for me in NS4x-6+ and IE5+ on PC -
> > haven't tried it on the mac yet, but you should be fine I believe,
> > though you might also want to add a title attribute value.
> >
> > HK
> >
> >
> > Kevin Spruill
> > National Library of Medicine
> > OCCS
> > = EMAIL ADDRESS REMOVED =
> > (301) 402-9708
> > (301) 402-0367 (fax)
> > www.nlm.nih.gov
> >
> > >>> = EMAIL ADDRESS REMOVED = 07/18/02 10:21AM >>>
> > When validating http://www.gcflearnfree.org with an HTML validator, we
> > find
> > out that <embed> is not part of html 4.01 and therefore does not
> > validate.
> > We do not use flash often and it is only used as supplemental material
> > to
> > information presented. Any ideas on how to make it validate?
> >
> > TIA,
> > mark
> >
> >
> > ----
> > To subscribe, unsubscribe, or view list archives,
> > visit http://www.webaim.org/discussion/
> >
> >
> > ----
> > To subscribe, unsubscribe, or view list archives,
> > visit http://www.webaim.org/discussion/
> >
> >
>
>
> ----
> To subscribe, unsubscribe, or view list archives,
> visit http://www.webaim.org/discussion/
>
>


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: John Foliot - bytown internet
Date: Fri, Jul 19 2002 3:06PM
Subject: RE: embed element within object tag not validating?
← Previous message | Next message →

based on my current testing, <OBJECT> for the additon of Flash does not work
in Mozilla 1.0 (???!!!) nor Opera 6.03 (??!!), both require the deprecated
<embed> tag.

What's a developer to do?

JF

> -----Original Message-----
> From: Joel Ward [mailto: = EMAIL ADDRESS REMOVED = ]
> Sent: July 19, 2002 2:11 PM
> To: = EMAIL ADDRESS REMOVED =
> Subject: Re: embed element within object tag not validating?
>
>
> http://www.blooberry.com/indexdot/html/tagpages/o/object.htm
>
> According to this reference, OBJECT is only available in NN6 and above.
>
>
> ----- Original Message -----
> From: "Mark Bryant" < = EMAIL ADDRESS REMOVED = >
> To: < = EMAIL ADDRESS REMOVED = >
> Sent: Friday, July 19, 2002 2:06 PM
> Subject: Re: embed element within object tag not validating?
>
>
> > When I removed the <embed>...</embed>, it still worked fine in
> IE, but not
> > in Netscape.
> >
> > -mark
> >
> > ----- Original Message -----
> > From: "Kevin Spruill" < = EMAIL ADDRESS REMOVED = >
> > To: < = EMAIL ADDRESS REMOVED = >
> > Sent: Friday, July 19, 2002 11:31 AM
> > Subject: Re: embed element within object tag not validating?
> >
> >
> > > Mark,
> > >
> > > <embed> is deprecated - just use the object tag (remove the embed line
> > > from your page code). That works fine for me in NS4x-6+ and
> IE5+ on PC -
> > > haven't tried it on the mac yet, but you should be fine I believe,
> > > though you might also want to add a title attribute value.
> > >
> > > HK
> > >
> > >
> > > Kevin Spruill
> > > National Library of Medicine
> > > OCCS
> > > = EMAIL ADDRESS REMOVED =
> > > (301) 402-9708
> > > (301) 402-0367 (fax)
> > > www.nlm.nih.gov
> > >
> > > >>> = EMAIL ADDRESS REMOVED = 07/18/02 10:21AM >>>
> > > When validating http://www.gcflearnfree.org with an HTML validator, we
> > > find
> > > out that <embed> is not part of html 4.01 and therefore does not
> > > validate.
> > > We do not use flash often and it is only used as supplemental material
> > > to
> > > information presented. Any ideas on how to make it validate?
> > >
> > > TIA,
> > > mark
> > >
> > >
> > > ----
> > > To subscribe, unsubscribe, or view list archives,
> > > visit http://www.webaim.org/discussion/
> > >
> > >
> > > ----
> > > To subscribe, unsubscribe, or view list archives,
> > > visit http://www.webaim.org/discussion/
> > >
> > >
> >
> >
> > ----
> > To subscribe, unsubscribe, or view list archives,
> > visit http://www.webaim.org/discussion/
> >
> >
>
>
> ----
> To subscribe, unsubscribe, or view list archives,
> visit http://www.webaim.org/discussion/
>


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: Bill Mason
Date: Fri, Jul 19 2002 10:42PM
Subject: RE: embed element within object tag not validating?
← Previous message | Next message →

At 02:57 PM 07/19/2002, John Foliot wrote:
>based on my current testing, <OBJECT> for the additon of Flash does not work
>in Mozilla 1.0 (???!!!)

Actually it can, but you have to omit the classid="clsid:###" attribute
that IE depends on to make OBJECT tags work. What to do about it is the
subject of a 2 year old Bugzilla
bug: <http://bugzilla.mozilla.org/show_bug.cgi?id=46569>;

Bill Mason
Accessible Internet
= EMAIL ADDRESS REMOVED =
http://www.accessibleinter.net/



----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: John Foliot - bytown internet
Date: Sat, Jul 20 2002 12:08AM
Subject: RE: embed element within object tag not validating?
← Previous message | Next message →

Thanks Bill... this lead me to this:

<object data="images/flash/intro.swf" width="70" height="400">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=5,0,0,0" width="70" height="400" style="margin-left:-70px;">
<param name=movie value="images/flash/intro.swf"> <param name="quality"
value="high">
</object>
</object>

Which validates to HTML 4.01 (strict) and is working in Moz 1.0, Opera 6.03,
and IE 6.02

'cause that's what you do at 3:00 AM <grin>

JF

> -----Original Message-----
> From: Bill Mason [mailto: = EMAIL ADDRESS REMOVED = ]
> Sent: July 20, 2002 1:36 AM
> To: = EMAIL ADDRESS REMOVED =
> Subject: RE: embed element within object tag not validating?
>
>
> At 02:57 PM 07/19/2002, John Foliot wrote:
> >based on my current testing, <OBJECT> for the additon of Flash
> does not work
> >in Mozilla 1.0 (???!!!)
>
> Actually it can, but you have to omit the classid="clsid:###" attribute
> that IE depends on to make OBJECT tags work. What to do about it is the
> subject of a 2 year old Bugzilla
> bug: <http://bugzilla.mozilla.org/show_bug.cgi?id=46569>;
>
> Bill Mason
> Accessible Internet
> = EMAIL ADDRESS REMOVED =
> http://www.accessibleinter.net/
>
>
>
> ----
> To subscribe, unsubscribe, or view list archives,
> visit http://www.webaim.org/discussion/
>


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: Bill Mason
Date: Sat, Jul 20 2002 1:16AM
Subject: RE: embed element within object tag not validating?
← Previous message | Next message →

At 12:00 AM 07/20/2002, John Foliot wrote:
>Thanks Bill... this lead me to this:
>
><object data="images/flash/intro.swf" width="70" height="400">
> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
>codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
>b#version=5,0,0,0" width="70" height="400" style="margin-left:-70px;">
><param name=movie value="images/flash/intro.swf"> <param name="quality"
>value="high">
> </object>
></object>
>
>Which validates to HTML 4.01 (strict) and is working in Moz 1.0, Opera 6.03,
>and IE 6.02

I tried that on my IE6.02, but it loaded both objects the first time, and
only the "classid" one on a refresh (though it still left space in the page
layout for the other object). Worked fine in Mozilla and Opera.

Bill Mason
Accessible Internet
= EMAIL ADDRESS REMOVED =
http://www.accessibleinter.net/



----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: John Foliot - bytown internet
Date: Sat, Jul 20 2002 7:34AM
Subject: RE: embed element within object tag not validating?
← Previous message | Next message →

Ya, order and CSS are important here: style="margin-left:-70px;" on the
"classid" object so that the IE version is *on top* of the non-clasid
version in IE, as it is rendered second.

JF

> -----Original Message-----
> From: Bill Mason [mailto: = EMAIL ADDRESS REMOVED = ]
> Sent: July 20, 2002 4:10 AM
> To: = EMAIL ADDRESS REMOVED =
> Subject: RE: embed element within object tag not validating?
>
>
> At 12:00 AM 07/20/2002, John Foliot wrote:
> >Thanks Bill... this lead me to this:
> >
> ><object data="images/flash/intro.swf" width="70" height="400">
> > <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
> >codebase="http://download.macromedia.com/pub/shockwave/cabs/flash
> /swflash.ca
> >b#version=5,0,0,0" width="70" height="400" style="margin-left:-70px;">
> ><param name=movie value="images/flash/intro.swf"> <param name="quality"
> >value="high">
> > </object>
> ></object>
> >
> >Which validates to HTML 4.01 (strict) and is working in Moz 1.0,
> Opera 6.03,
> >and IE 6.02
>
> I tried that on my IE6.02, but it loaded both objects the first time, and
> only the "classid" one on a refresh (though it still left space
> in the page
> layout for the other object). Worked fine in Mozilla and Opera.
>
> Bill Mason
> Accessible Internet
> = EMAIL ADDRESS REMOVED =
> http://www.accessibleinter.net/
>
>
>
> ----
> To subscribe, unsubscribe, or view list archives,
> visit http://www.webaim.org/discussion/
>


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: Bill Mason
Date: Sat, Jul 20 2002 8:20AM
Subject: RE: embed element within object tag not validating?
← Previous message | Next message →

At 07:28 AM 07/20/2002, John Foliot wrote:
>Ya, order and CSS are important here: style="margin-left:-70px;" on the
>"classid" object so that the IE version is *on top* of the non-clasid
>version in IE, as it is rendered second.

Oh, that's too bad then. You can't really be dependent on style sheets to
fix what's really an IE bug: it's trying to render all the nested objects
when the spec calls for the browser to render the first one it can and
ignore the rest.

If I could figure out on Microsoft's site how to file a bug report, I would....

Thanks John.

Bill Mason
Accessible Internet
= EMAIL ADDRESS REMOVED =
http://www.accessibleinter.net/



----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: Tim Luoma
Date: Sat, Jul 20 2002 9:10AM
Subject: Re: embed element within object tag not validating?
← Previous message | Next message →

Bill Mason wrote:

> If I could figure out on Microsoft's site how to file a bug report, I
> would....

HA! I'd love to find that URL too but I bet there isn't one or it's not
easily found, or else their machines would crash from all the
submissions ;-)

TjL





----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: John Foliot - bytown internet
Date: Sun, Jul 21 2002 10:17AM
Subject: RE: embed element within object tag not validating?
← Previous message | Next message →

Well then:

<script type="text/javascript">
<!--

var sBrowser = navigator.userAgent;
if (sBrowser.indexOf("IE") > -1)
{
sBrowser = "IE";
} else {
sBrowser = "nonIE";
}
// end browser sniff

if (sBrowser == "IE")
document.write("<object
classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=5,0,0,0' width='70' height='400'> <param name=movie
value='images/flash/intro.swf'> <param name='quality' value='high'>")

else
document.write("<object data='images/flash/intro.swf' width='70'
height='400'>")
//-->
</script>
<noscript>
<div><img src="images/intro2.gif" width="70" height="400" alt=""></div>
</noscript>

It is after all only eye candy.

see: www.zaphodbeeblebrox.com

JF

> -----Original Message-----
> From: Bill Mason [mailto: = EMAIL ADDRESS REMOVED = ]
> Sent: July 20, 2002 11:13 AM
> To: = EMAIL ADDRESS REMOVED =
> Subject: RE: embed element within object tag not validating?
>
>
> At 07:28 AM 07/20/2002, John Foliot wrote:
> >Ya, order and CSS are important here: style="margin-left:-70px;" on the
> >"classid" object so that the IE version is *on top* of the non-clasid
> >version in IE, as it is rendered second.
>
> Oh, that's too bad then. You can't really be dependent on style
> sheets to
> fix what's really an IE bug: it's trying to render all the nested objects
> when the spec calls for the browser to render the first one it can and
> ignore the rest.
>
> If I could figure out on Microsoft's site how to file a bug
> report, I would....
>
> Thanks John.
>
> Bill Mason
> Accessible Internet
> = EMAIL ADDRESS REMOVED =
> http://www.accessibleinter.net/
>
>
>
> ----
> To subscribe, unsubscribe, or view list archives,
> visit http://www.webaim.org/discussion/
>


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: Mark Bryant
Date: Mon, Jul 22 2002 11:57AM
Subject: Re: embed element within object tag not validating?
← Previous message | Next message →

How would you make it work within Netscape without using the <embed>?

TIA,
mark
----- Original Message -----
From: "John Foliot - bytown internet" < = EMAIL ADDRESS REMOVED = >
To: < = EMAIL ADDRESS REMOVED = >
Sent: Saturday, July 20, 2002 10:28 AM
Subject: RE: embed element within object tag not validating?


> Ya, order and CSS are important here: style="margin-left:-70px;" on the
> "classid" object so that the IE version is *on top* of the non-clasid
> version in IE, as it is rendered second.
>
> JF
>
> > -----Original Message-----
> > From: Bill Mason [mailto: = EMAIL ADDRESS REMOVED = ]
> > Sent: July 20, 2002 4:10 AM
> > To: = EMAIL ADDRESS REMOVED =
> > Subject: RE: embed element within object tag not validating?
> >
> >
> > At 12:00 AM 07/20/2002, John Foliot wrote:
> > >Thanks Bill... this lead me to this:
> > >
> > ><object data="images/flash/intro.swf" width="70" height="400">
> > > <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
> > >codebase="http://download.macromedia.com/pub/shockwave/cabs/flash
> > /swflash.ca
> > >b#version=5,0,0,0" width="70" height="400" style="margin-left:-70px;">
> > ><param name=movie value="images/flash/intro.swf"> <param name="quality"
> > >value="high">
> > > </object>
> > ></object>
> > >
> > >Which validates to HTML 4.01 (strict) and is working in Moz 1.0,
> > Opera 6.03,
> > >and IE 6.02
> >
> > I tried that on my IE6.02, but it loaded both objects the first time,
and
> > only the "classid" one on a refresh (though it still left space
> > in the page
> > layout for the other object). Worked fine in Mozilla and Opera.
> >
> > Bill Mason
> > Accessible Internet
> > = EMAIL ADDRESS REMOVED =
> > http://www.accessibleinter.net/
> >
> >
> >
> > ----
> > To subscribe, unsubscribe, or view list archives,
> > visit http://www.webaim.org/discussion/
> >
>
>
> ----
> To subscribe, unsubscribe, or view list archives,
> visit http://www.webaim.org/discussion/
>
>


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: Bill Mason
Date: Mon, Jul 22 2002 3:47PM
Subject: Re: embed element within object tag not validating?
← Previous message | No next message

At 11:51 AM 07/22/2002, Mark Bryant wrote:
>How would you make it work within Netscape without using the <embed>?

If you mean Netscape 4.x, you can't. EMBED has to be present.

Bill Mason
Accessible Internet
= EMAIL ADDRESS REMOVED =
http://www.accessibleinter.net/



----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/