SVG, Embed and validation issues

T

The Doormouse

I do not understand why "Object" will validate, but not work in my
browsers, while stinky "embed" won't validate and works in IE6.

The code is correct, yet both browsers barf it all up. Feh.

My browsers are IE6 and Firefox - so much for "leaping boldly into the
future". I am really disappointed that XHTML 1.0, particularly, does not
play nice with SVG.

The Doormouse
 
T

The Doormouse

Toby A Inkster said:
Because you're not using it properly. Post the code.

This doesn't work, but validates:
<p><object width="162" height="36">
<param name="src" value="sample.svg">
</object></p>


This works, but does not validate:
<p><embed src="sample.svg" width="162" height="36" type="image/svg-
xml"</p>

The Doormouse
 
S

Steve Pugh

The Doormouse said:
This doesn't work, but validates:
<p><object width="162" height="36">
<param name="src" value="sample.svg">
</object></p>

<OBJECT type="image/svg+xml" DATA="sample.svg" width="162"
height="36">
Sorry, no SVG for you, here's a GIF instead: <img src="sample.gif"
alt="Hi!">
</OBJECT>

Works in Win IE 5+ with the Adobe SVG plugin. I don't have SVG plugins
installed for any other browsers so can't test, but equivalent syntax
for other media works in Gecko (and sometimes in Opera).

Steve
 
T

The Doormouse

Thank you, Steve - that was it!
It works and validates.

My version of GoLive (5) does not insert the correct code.
I wonder if GoLive CS will?

The Doormouse
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top