<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>5964</bug_id>
          
          <creation_ts>2008-08-13 15:33:54 +0000</creation_ts>
          <short_desc>getting width/height on &lt;embed&gt;, &lt;iframe&gt;, &lt;object&gt; and &lt;video&gt;</short_desc>
          <delta_ts>2010-10-04 13:58:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters">zcorpan</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>mike</cc>
    
    <cc>olivier.gendrin</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21523</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2008-08-13 15:33:54 +0000</bug_when>
    <thetext>In Firefox, Opera, Safari and IE, getting the width and height DOM attributes on &lt;embed&gt;, &lt;iframe&gt; and &lt;object&gt; when the content attributes are absent return the empty string. The spec says it should be 0.

http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0D%0A%3Cstyle%3Eembed%2C%20object%2C%20iframe%20%7B%20width%3A123px%3B%20height%3A45px%3B%20%7D%3C%2Fstyle%3E%0D%0A%3Cscript%3E%0D%0Aonload%3Dfunction()%7B%0D%0Avar%20e%20%3D%20document.body.firstChild%3B%0D%0Ado%20%7B%0D%0Aw(e.nodeName%20%2B%20&apos;%3A%20&apos;%20%2B%20e.width%20%2B%20&apos;%2C%20&apos;%20%2B%20e.height)%0D%0A%7D%20while%20(e%20%3D%20e.nextSibling)%3B%0D%0A%7D%0D%0A%3C%2Fscript%3E%0D%0A%3Cembed%3E%3Cobject%3E%3C%2Fobject%3E%3Ciframe%3E%3C%2Fiframe%3E%3Cimg%3E%3Cvideo%3E%3C%2Fvideo%3E

Perhaps the spec should require this and make &lt;video&gt; consistent with the other 3?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21524</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Gendrin">olivier.gendrin</who>
    <bug_when>2008-08-13 16:14:57 +0000</bug_when>
    <thetext>I do not understand why &lt;img&gt; is not related to this problem.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>