[Mono-devel-list] XhtmlTextWriter
Miguel de Icaza
miguel at ximian.com
Fri Jul 4 14:41:11 EDT 2003
Hello,
> > 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.
I forget the concrete errors, but things like <br/> are not valid
HTML4. Google will reveal the critique.
> 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).
If a browser requests text/html, it should return text/html, not
text/xml. No matter how "its almost ok" you can get it.
It is *our* problem.
Miguel.
More information about the Mono-devel-list
mailing list