Updates: Status: Invalid Comment #1 on issue 196 by t.broyer: Empty elements and self closing tags http://code.google.com/p/html5lib/issues/detail?id=196
import html5lib p = html5lib.HTMLParser() doc = p.parse("<a name='anchor_name'></a>") print html5lib.serialize(doc) -- You received this message because you are subscribed to the Google Groups "html5lib-discuss" group. To post to this group, send an email to html5lib-discuss@googlegroups.com. To unsubscribe from this group, send email to html5lib-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/html5lib-discuss?hl=en-GB.