Skip navigation
salonorangeflower
Currently Being Moderated

Validation errors flash when migrating site to html 5

Jul 4, 2012 1:03 AM

Hello,

 

I am in the middle of migrating my website to HTML5. My website contains a few .swf files that I've

embedded in myt html code. When I am validation my site (at W3C) I get a few errors. I hope someone

can help me with this problem.

 

This is the code i am using:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve rsion=8,0,0,24" width="270" height="175">

<param name="movie" value="flash/header_v8_1_orangeflower.swf?button=1" />

<param name="quality" value="high" />

<param name="menu" value="false" />

</object>

 

When validating i get this error:

Error  Line 63, Column 131: Element object is missing one or more of the following attributes: data, type.

…ub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24" width="270" height="175">
 
Replies
  • Currently Being Moderated
    Jul 4, 2012 6:05 AM   in reply to salonorangeflower

    That looks like old-style embedding code and if it is it will not validate with the W3C standards.  Look into using more modern embedding techniques.  SWFObject might help... http://code.google.com/p/swfobject/

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 4, 2012 9:29 AM   in reply to salonorangeflower

    I also recommend swfobject... but sometimes all the extra IE conditional statements that comes with version 2+ can cause problems. I like the earlier 1.5 version myself.

    Either version.... they are still both Flash detection methods. The real stregth of using Flash detection is the ability to add "Alternate content".... NOT as a mean of just placing Flash on a Web page. That can be done with just HTML <object> code.... no swfobject needed.

    The single <object> method..... Very simple and clean:

    <object data="path_to_file/file.swf" type="application/x-shockwave-flash" width="insert_width_of_movie" height="insert_height_of_movie">

      <param name="movie" value="path_to_file/file.swf">

      <param name="SomeOtherParam" value="ParamValue">

    </object>

    Edit as needed for your content

    Best wishes,

    Adninjastrator

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points