I am finding a problem with empty elements when serving content with the text/html content type on Firefox. For example, collapsed empty div elements cause havoc in firefox. A possible workaround would be implementing the compatibility guidelines indicated in the W3C recommendations.

In particular, I would add the same check already present for style, script and textarea for any element whose end tag is required in HTML 4.01.

Would a patch for this be welcome?