EMBED inside OBJECT layout problem

Koos Vriezen koos.vriezen at xs4all.nl
Sat Jan 25 20:46:10 GMT 2003


Hi,

This page
http://wwwa.accuweather.com/adcbin/video/video_frameset.asp?video=889945
isn't rendered correctly. It has an embedded object of type
application/x-mplayer2, which can be played with KMPlayer.
The left middle frame looks like
<BODY>
  <TABLE WIDTH=430 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
      <TD><IMG SRC=".." WIDTH=49 HEIGHT=318 ..></TD>
      <TD ..>
        <object id="MediaPlayer" ...>
          <param name=...>
          .....
          <embed src="..." ....>
            width="330"
            height="320"
          </embed>
        </object>
      </TD>
      <TD><IMG SRC="..." WIDTH=50 HEIGHT=318 ..></TD></TD>
    </TR>
   </TABLE>
</BODY>
What happens is that the width of OBJECT is layouted as 50, same for
height. Which means a very small movie.

Original report comes from someone with RH 7.3, kde3.1 rc6 qt 3.1. I can
reproduce is with HEAD.
I think its a problem with the OBJECT not accounting its child sizes.
Resizing it via evalJS, like
document.getElementById("MediaPlayer").setAttribute("width", 330), fixes
it. (BTW, shouldn't document.MediaPlayer work?)

Koos





More information about the kfm-devel mailing list