WaSP Asks the W3C

Adding Multimedia in Web Documents (part 2)

In the first part of this article, we reviewed the history of the multimedia inclusion in hypertext documents. Let us now explore in more detail how we can use the most current and recommended method to accomplish this task: the object element.

A versatile and complete inclusion mechanism

The object element is a good solution to the early problems of inserting multimedia in (X)HTML:

The object element is a generic mechanism that gives us more flexibility than any previous elements that have been designed to perform multimedia inclusion.

Usage of the object element

Back to the question for this WasP asks the W3C issue: How do we insert multimedia objects into Web documents in a backwards-compatible way?

The term "backwards-compatible" as used here is vague and could be misleading. Backwards-compatibility is not a matter of how a document is authored. A technology can be backwards-compatible if a new version of the technology completely includes the functionality of its predecessor.

Questions that have been asked about including multimedia in web documents:

The question we ought to be asking is: How do we include multimedia in (X)HTML documents in a way that will work with every existing browser?

Conclusion

As we have just seen, backwards-compatibility is not truly relevant to the issue of multimedia inclusion. What we need to know is how well the different techniques attached to the different versions of (X)HTML are supported by the browsers, and based on that knowledge, which DTDs and associated techniques should be chosen.

There is no a single best option, but we recommend:

  1. Choose a DTD, strict if possible. Strict DTDs are supported by browsers, authoring tools, and devices.
  2. When the DTD is chosen, use the available tags and avoid items which are deprecated
  3. If the web content is to be changed in the future or delivered in a different way (such as generating RSS feeds) using older deprecated tags or unsupported methods and not using well-formed/strict DOCTYPEs may or will cause that web content to break. Also, if the document will need a transformation, if it is in strict format and well-formed then transformation to other DOCTYPEs or formats will be easier to accomplish or automate.

The test results show that the implementation of object element in modern browsers has been improved but is not yet perfect. The object element is part of XHTML 2.0 Working Draft specification. Specifications are now created according to stricter rules than in the past, and this will no doubt benefit future implementations of the object element.

Please run these tests with your platform of choice and send a quick report to the mailing-list. This way, we will be better armed to request more solid implementations of the object element from user agent vendors.

Discussion

For clarification and discussion on this topic, please address your comments and questions to the W3C Web Standards Education list.

To subscribe to the list, send an email to public-evangelist- [email protected] with “Subject: subscribe”. You can read archived posts at http:// lists.w3.org/Archives/Public/public-evangelist/.