Michael van Tellingen wrote:
> Hi there,
> 
> I was looking at the modeltags feature in the new webhelpers. 
> Unfortunately it only renders tags in XHTML mode. Since I prefer not to 
> use that (see 
> http://webkit.org/blog/68/understanding-html-xml-and-xhtml/) i've added 
> a flag to the webhelpers.html.HTMLBuilder to render it as HTML.

We decided this was the easiest way as the code produced is both valid 
HTML and XHTML.  It produces warnings when validated as HTML, but no 
errors, and I don't think any clients have problems with it when parsing 
it as HTML.

Specifically, all empty tags (br, input, etc) get a trailing />, making 
them valid XHTML.  All other tags always have open and close tags, which 
are equivalent in HTML and XHTML (i.e., it never produces <script />).

-- 
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to