When you open it in the Notes Client there's a button to view the source. Is there anything different in the HTML for the client that identifies the cause?
Also, if you can use the Extension Library, there is a Firebug Lite control which may help you debug your code to identify the cause.