No. We had a recent discussion about this, but I think it was decided to leave the current behavior. The < /> syntax is valid in HTML 5, XHTML, and HTML 4 Transitional, though invalid in HTML 4 Strict. The < > syntax is valid in HTML 5 and HTML 4, but not in XHTML. In practice, I think both versions work in all browsers.
Anthony On Friday, February 21, 2014 5:47:38 PM UTC-5, User wrote: > > Out of curiosity is the HTML syntax for void elements possible (i.e. start > tag only) with a helper? > > e.g. > <link rel="next" href="http://example.com/article?pg=2"> > > > > On Friday, February 21, 2014 5:37:57 PM UTC-5, Anthony wrote: > >> TAG['link/'](_href=...) >> >> To generate a self-closing tag, the tag name must end with a "/", so to >> do that, you need to use the TAG["tagname"] syntax instead of TAG.tagname. >> >> Anthony >> >> On Friday, February 21, 2014 4:43:08 PM UTC-5, User wrote: >>> >>> How can I generate a self-closing tag ( >>> http://dev.w3.org/html5/html-author/#start-tag) or void element using >>> the TAG helper? >>> >>> For example, in the header I want to generate: >>> >>> <link rel="next" href="http://example.com/article?pg=2"> >>> >>> >>> or >>> >>> <link rel="next" href="http://example.com/article?pg=2"/> >>> >>> >>> However using TAG.link(_rel='next', _href=' >>> http://example.com/article?pg=2') generates: >>> >>> <link rel="next" href="http://example.com/article?pg=2"></link> >>> >>> >>> >>> >>> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

