How do Web browsers perform when copying and pasting alternate text?
In HTML, an image is made up of visual and textual data (alternate text). Most Web browsers attempt to render alternate text when visual data is not available. However, only one browser currently uses alternate text when pasting images into other applications.
The test
Let's start with the following HTML document:
<html><head><title>Alt text copy and paste test</title></head><body><p>I <img src="heart.gif" alt="love" /> you!</p><body></html>
A Web browser will render the markup above like this:

Now, in the browser, select and copy the same sentence containing the image and paste it into Notepad or another application that does not support images. The correct result should be:

Unfortunately, four out of the five top browsers will not use alternate text and give this incorrect result:

Browser test results
| Browser | Result |
|---|
| Firefox 3.6.3 | Passed |
| IE 8 & IE 9 Platform Preview | Failed |
| Chrome 5 | Failed |
| Safari 4.05 | Failed |
| Opera 10.53 | Failed |
Comments are closed for this article.