Problem with <embed> tag

rmac897 - February 2, 2007 - 16:15
Project:Embed filter
Version:5.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

I had a problem with showing flash video in Firefox. It is shown correctly in both Safari on OSX and IE7 on Win XP. In Firefox the flash is not shown at all and the layout is messed. My Drupal -version is 4.7.5

The code to display flash object is:

<object classid=kjhkjhkjh codebase=lkjlkjlkjlkjlk width=uytutu height=kjhkjhkj>
<param name="movie" value="lkjlkjlkj.swf">
<param name="quality" value="high">
<embed src="iuyiuyiuyiuyI" quality="high" pluginspage="kjhkjhkjhkJ" type="hkjhkjh" width="675" height="324">
</embed>
</object>

However when I looked the generated html it was like this:
<object classid=kjhkjhkjh codebase=lkjlkjlkjlkjlk width=uytutu height=kjhkjhkj> /p
<param name="movie" value="lkjlkjlkj.swf">
<param name="quality" value="high">
</embed><br />
</object> /p

So somehow the filter ignored the opening embed -tag and also inserted additional br / and /p (these were shown as tags).

Is this known problem and is there a workaround? It would make sense why Firefox has problems because only Mozillas look for the embed -tag.

#1

bdragon - June 10, 2007 - 23:51

I see this too, in Drupal 5.

#2

peter076 - August 21, 2007 - 20:43

Same here, in Drupal 5.2

#3

codehack - September 6, 2007 - 05:06

I got it working with 5.2 by giving the Embed filter a -5 weight and the HTML filter weight 0.

#4

robertDouglass - September 8, 2007 - 06:49

Interesting. Could anybody confirm the weight fix? This is obviously a bug that I should sit down and fix, but simply haven't gotten to. It would be nice if the ordering of the modules could be the solution.

#5

bdragon - September 8, 2007 - 19:49

I think he meant weighting the filters in the input format.

#6

amedj - April 17, 2008 - 15:50

hi,
I had the same problem with drupa 5.2. when i embed a flash movie in a block, it would show the code and not the flash. The only way i got it work was open it with fckeditor and close it .For some reason this worked .
cheers

#7

KarenS - September 27, 2009 - 09:42
Version:4.7.x-1.x-dev» 5.x-1.0

I am not maintaining the 4.7 version any more (or the D5 version either) but we should see if this is still a problem in the latest code, once I get it updated to D6.

 
 

Drupal is a registered trademark of Dries Buytaert.