[whatwg] <INCLUDE> and links with @rel=embed
svartman95 at gmail.com
Tue May 18 04:11:08 PDT 2010
This is yet another proposal to replace <video>, <audio>, <model> etc with a single element: <include>.
Example says more than a hundred words:
<a rel="alternate embed" src="./video" type="video/mpeg" media="visual" title="[insert title here]">A video recording of the conference</a>
<a rel="alternate embed" src="./audio" type="audio/speex" media="aural" title="An informational title...">A sound recording of the conference</a>
Change @rel=embed to some better name if you want and correct the media query which may be wrong but you should get the general idea.
This seems backwards compatible and I'd argue that it's more semantic, even to unsupporting browsers, than wrapping it up in Flash (though authors can add an <object> after the <a>s if they want).
Also it's possible to group elements similiar to alternate stylesheets with the same title, or by nesting <includes>. We just have to standardize on either one.
<a rel="alternate embed" src="./video+audio" type="video/x-matroska" ...>...</a>
<include rel="alternate" title="Seperate tracks if you can't open matroskas"> <!-- Either mark the include as alternate or make all elements inside an <include> alternatives -->
<a rel="embed" href="./video" ...>Video track</a>
<a rel="embed" href="./audio" ...>Audio track</a>
And some quotes from Tim Berners-Lee who thought of the issue of <audio>, <IMG> and <video> in '93.
>I had imagined that figues would be reprented as
><a name=fig1 href="fghjkdfghj" REL="EMBED, PRESENT">Figure </a>
>where the relation ship values mean
>EMBED Embed this here when presenting it
>PRESENT Present this whenever the source document is presented
>Note that you can have various combinations of these, and if the browser doesnât support either one, it doesnât break.
I'm not quite sure how PRESENT is useful, though.
>Let the IMG tag be INCLUDE and let it refer to an arbitrary document type. Or EMBED if INCLUDE sounds like a cpp include which people will expect to provide SGML source code to be parsed inline â not what was intended.
s/IMG/video and audio/
More information about the whatwg