[Mono-devel-list] XhtmlTextWriter

Ben Maurer bmaurer at users.sourceforge.net
Thu Jul 3 17:26:37 EDT 2003

On Thu, 2003-07-03 at 09:37, Miguel de Icaza wrote:
> Just for the record: we discussed this last night, and I do not believe
> that we should use the XML writer to produce XHTML, given that it is
> technically incorrect to return text/xml when a browser requests
> text/html.
I do not think this statement is true. Valid XHTML is a subset of valid
HTML4, there is no reason that we can't just generate XHTML, which by
definition valid HTML.

> There is some document describing the problems that browsers can run
> into.
As stated by the XHTML spec (http://www.w3.org/TR/xhtml1/#guidelines).
The workarounds in there are not hard to implement. Even in the few
cases where a few very broken browsers will have bugs exposed, I do not
believe it is a problem. I mean, if a UA can not render valid HTML4,
that is *not* our problem. At the *very* least, we should set up ASPX to
generate valid XHTML for good browsers (moz and opera, maybe IE6).

-- Ben

More information about the Mono-devel-list mailing list