BrakeBlog

Local photography, National rants, Zero navel-gazing allowed… Blogging from Hopkinsville, KY

limiting breakage

WordPress developers spend a great deal of time making their software standards-based. A vanilla install of WordPress will pass the W3C’s validator easily that is until you try to embed flash video. The classic flash embed code includes the non-standard <embed> tag unique to the netscape browsers. However, there are methods of embeding flash with valid markup except that the non-standard behavior of Internet Explorer continues to get in the way. In order to get the same behavior in all browsers a hack like the Satay Method is required. Given that the videos I want to embed are random things from youtube and other sites using a container flash movie won’t work. So the simple work around I’m using is to insert WordPress’s <!–more–> tag and place the video after it. This limits the non-standard code to just the individual post page and it keeps the rest of my website standards compliant.


Posted

in

by