Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
Update README.rdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
pipwerks committed Oct 20, 2011
1 parent 81d75ea commit 5d2ff52
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.rdoc
Expand Up @@ -23,18 +23,18 @@ compatible with SWFObject 2.2. The only two significant changes to the API:
Example:

OLD:
swfobject.embedSWF("myContent.swf", "my-target-element", "300", "120", "10.0.0");
swfobject.embedSWF("myContent.swf", "my-target-element", "300", "120", "10.0.0");

NEW:
var el = document.getElementById("my-target-element");
swfobject.embedSWF("myContent.swf", el, 300, 120, 10);
var el = document.getElementById("my-target-element");
swfobject.embedSWF("myContent.swf", el, 300, 120, 10);


Another significant change: SWFObject's approach to dynamic embedding in Internet Explorer
has been updated to use a more W3C-friendly way of creating the <object>. Because this is
has been updated to use a more W3C-friendly way of creating the `<object>`. Because this is
Internet Explorer, a few hacks were required, but the end result is code generated by W3C
techniques (document.createElement). This means, among other things, that nodes generated
for XHTML documents should properly self close (e.g. <object><param /></object> instead of
<object><param></object>). Similarly, since the param elements are all generated using the
techniques (`document.createElement`). This means, among other things, that nodes generated
for XHTML documents should properly self close (e.g. `<object><param /></object>` instead of
`<object><param></object>`). Similarly, since the `<param>` elements are all generated using the
same W3C techniques, encoding flashvars should be less troublesome. Developers will no
longer need to create separate workflows for IE and non-IE browsers.
longer need to create separate flashvars encoding workflows for IE and non-IE browsers.

0 comments on commit 5d2ff52

Please sign in to comment.