In the following example, the word “Goodbye” doesn’t render (in Chrome 14, anyway):
<html>
<body>
<p>Hello</p>
<object width="400" height="400" data="helloworld.swf"/>
<p>Goodbye</p>
</body>
</html>
However, it does render when I add an explicit end tag to object:
<html>
<body>
<p>Hello</p>
<object width="400" height="400" data="helloworld.swf"></object>
<p>Goodbye</p>
</body>
</html>
Since I’m not supplying any parameters to my object and I don’t want anything to show up if the object fails to load, it seems like the first syntax should be allowed. Is anyone aware of a specific reason why this is disallowed?
Because
objectshould contain fallback content in case the browser doesn’t support, or doesn’t have access to a plugin which supports, the content theobjectelement references.