This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In Firefox, Opera, Safari and IE, getting the width and height DOM attributes on <embed>, <iframe> and <object> 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'%3A%20'%20%2B%20e.width%20%2B%20'%2C%20'%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 <video> consistent with the other 3?
I do not understand why <img> is not related to this problem.