As you now probably know, Microsoft has released a patch to IE6 because they have failed on appeal to overturn the Eolas patent on browser plug-ins, despite much back and forth and valiant efforts from the W3C.
This is going to primarily affect Flash, Windows Media Player and Java Applets.
AJAX is not affected (You can go back to reading “Getting Real” now 🙂 ).
The symptom of this patch is that a user is unable to interact with an embedded object without first acknowledging a tool-tip prompt with a mouse click or key press anywhere to the embedded object.
So, your embedded object (Flash/Windows Media Player etc..) will play and animate, but a user will not be able to click any buttons, enter any text, or activate any rollovers until that first acknowledgement occurs.
Perhaps every time you click, someone at Eolas gets a penny 🙂
The prompt for acknowledgement is a small and subtle tool-tip and a highlighted border around the embedded object, both of which are easily missed. You may just notice that you need to click a flash button twice instead of once before you realise what is going on.
Here is my summary.
Luckily the patent is so specific on how an embedded object is added to a HTML page and activated, it can be easily coded around.
The patch will only affect plug-ins that are
1) Embedded via explicit <embed, <object or <applet elements in a HTML page
If you have pages that are affected by this patch then the solution is as follows..
1) Any explicitly embedded <embed <object or <applet elements should be moved into a function in a .js file that gets included by the main page.
As long as the document.write() is performed in an external function, then your embedded elements will work.
You can generate a string containing the elements in the main page and pass it into an external function that simply does the document.write() for you..
And it will not trigger the prompt.
In the future..
- If you are using Flash, it is best practice to use flashObject , if you are not already.
- It is considered A Good ThingTM to have just content markup in your HTML and move all functions and style onto external .css and .js to avoid the dreaded Tag Soup. If you do this already then pat yourself on the back and relax, this patch won’t affect you.