<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div><div>Ian Hickson (2008-05-06):</div><blockquote type="cite"><div><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">On Wed, 1 Nov 2006, Christoph Päper wrote:</span></div></blockquote><div><br></div><div>It's been a while, not that important anyhow.</div><br><blockquote type="cite"><blockquote type="cite"><div>I think it would be helpful to /explicitly/ allow content types (...<span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">) in |type| of |object| to omit the subtype, e.g.: </span></div></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font></div></blockquote></blockquote><div>|| <object type="video" data="foo.mpv"/> ~= <video src="foo.mpv"/></div><div>|| <object type="audio" data="foo.mpa"/> ~= <audio src="foo.mpa"/></div><blockquote type="cite"><blockquote type="cite"></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><div> <object type="image" data="foo.png"/> ~= <img src="foo.png"></div><div> <object type="application" data="foo.swf"/> ~= <embed src="foo.swf"/></div><div> <object type="text" data="foo.txt"/> ~= <iframe src="foo.txt"/></div><div><br></div><div>Maybe this is all the support for this element type that should be <span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">required from conforming implementations.</span></div><div><br></div><div>I could also envision an HTML5 where |alt| was optional for (...<span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">) |img|, which in return was only allowed to be used for optional, decorative images (...). Every illustration conveying meaning was then to be embedded using |object| (...) or more sophisticated methods.</span></div> </blockquote><div><br></div><div>I don't really see how to handle this feedback. We can't really make the <span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">changes that would change how <object> works today.</span></div><div></div></blockquote></div><br><div>Allowing subtype omission doesn't really change anything, because todays browsers do not support it.</div><div><br></div><div>The semantic distinction between |object| and |img| (and perhaps any of the other four respective element types) is an idea I had in 2006 and am not too fond of anymore. Not because it's bad, but because it would be hard to teach for little gain. And it's mostly and better handled by |figure| now.</div><div><br></div><div><div><!DOCTYPE html></div><div><title>object subtype omission test</title></div><div><style></div><div>object, .obj {background: lime}</div><div>iframe, img, embed, video, audio, .alt {background: orange}</div><div></style></div><div><br></div><div><h1>Legend</h1></div><div><dl></div><div><dt class="obj">Fallback 0<dd>no <code>type</code></div><div><dt class="obj">Fallback 1<dd>only major type</div><div><dt class="obj">Fallback 2<dd>major type with trailing slash</div><div><dt class="obj">Fallback 3<dd>any subtype (asterisk)</div><div><dt class="obj">Fallback 4<dd>explicit subtype</div><div><dt class="alt">Fallback X<dd>alternative embedding element</div><div></dl></div><div><br></div><div><h2>Text</h2></div><div><object src="foo.txt">Fallback 0</object></div><div><object type="text" src="foo.txt">Fallback 1</object></div><div><object type="text/" src="foo.txt">Fallback 2</object></div><div><object type="text/*" src="foo.txt">Fallback 3</object></div><div><object type="text/plain" src="foo.txt">Fallback 4</object></div><div><iframe src="foo.txt">Fallback X</iframe></div><div><br></div><div><h2>Image</h2></div><div><object src="foo.png">Fallback 0</object></div><div><object type="image" src="foo.png">Fallback 1</object></div><div><object type="image/" src="foo.png">Fallback 2</object></div><div><object type="image/*" src="foo.png">Fallback 3</object></div><div><object type="image/png" src="foo.png">Fallback 4</object></div><div><img src="foo.png" alt="Fallback Xa">Fallback Xb</img></div><div><br></div><div><h2>Application</h2></div><div><object src="foo.swf">Fallback 0</object></div><div><object type="application" src="foo.swf">Fallback 1</object></div><div><object type="application/" src="foo.swf">Fallback 2</object></div><div><object type="application/*" src="foo.swf">Fallback 3</object></div><div><object type="application/" src="foo.swf">Fallback 4</object></div><div><embed src="foo.swf">Fallback X</embed></div><div><br></div><div><h2>Video</h2></div><div><object src="foo.avi">Fallback 0</object></div><div><object type="video" src="foo.avi">Fallback 1</object></div><div><object type="video/" src="foo.avi">Fallback 2</object></div><div><object type="video/*" src="foo.avi">Fallback 3</object></div><div><object type="video/mpeg" src="foo.avi">Fallback 4</object></div><div><video src="foo.avi">Fallback X</video></div><div><br></div><div><h2>Audio</h2></div><div><object src="foo.mp3">Fallback 0</object></div><div><object type="audio" src="foo.mp3">Fallback 1</object></div><div><object type="audio/" src="foo.mp3">Fallback 2</object></div><div><object type="audio/*" src="foo.mp3">Fallback 3</object></div><div><object type="audio/mpeg" src="foo.mp3">Fallback 4</object></div><div><audio src="foo.mp3">Fallback X</audio></div><div><br></div></div></body></html>