Having this code here will actually cause things to explode if there actually is a template for any of these (you can't add attributes to an element once it has children). This code would attempt to add attributes to the `<object>` element **after** the child `<embed>` element was created. If it's dead code (otherwise it would error) I would remove it or move it right below the line that creates the `<object>`.