[Mono-devel-list] XhtmlTextWriter

Miguel de Icaza miguel at ximian.com
Thu Jul 3 10:37:22 EDT 2003


Hello,

> > I have completed preliminary work on an XhtmlTextWriter class and 
> > supporting attribute, tag, and style enums.  I built them using mcs from 
> > CVS and they compile with no errors.  I have not written any tests for 
> > them, but I am unfamiliar with writing unit tests so any help in this 
> > area would be appreciated.
> 
> Great!!! Tomorrow I'll test this: i will use this class instead of the
> HtmlWriter we have now. If it works (more or less ;-), I'll add the
> <browserCaps> machine.config section to allow the user to choose the tag
> writer.

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.

There is some document describing the problems that browsers can run
into.  The XhtmlTextWriter should be used for things where proper HTML
will be embedded in an XML document.

Mguel



More information about the Mono-devel-list mailing list