Hi,
When I insert an image in the wysiwyg editor and I switch to code view, then I get <img …> instead of <img … />. Is there some way to configure Matrix or the WYSIWYG editor to generate correct XHTML for the image element?
This is what HTML Tidy is for -- the WYSIWYG editor uses the browser's internal HTML generation, which for almost all browsers is not XHTML. Thus, we pass all the code through HTML Tidy on commit. If you don't have HTML Tidy configured, your content will not be XHTML compliant.