I have a program that is accessing the innerHTML member of a dynamically created div. It is working when the page is sent as text/html, but there is an exception thrown when it is application/xhtml+xml. (This is a known bug.) This page can be loaded using either method:

HTML XML