Status: New
Owner: ----
New issue 196 by adrien.d...@gmail.com: Empty elements and self closing tags
http://code.google.com/p/html5lib/issues/detail?id=196
SimpleTree replace an empty element (for example <p></p>)
with a self closed element (<p />) in it's toxml() method.
This is XHTML valid, but not HTML valid.
http://dev.w3.org/html5/html-author/#elements
Is there a way to choose between XHTML output and HTML output in the
html5lib ?
What is the expected output? What do you see instead?
import html5lib
p = html5lib.HTMLParser()
print p.parse("<a name='anchor_name'></a>").toxml()
<html><head></head><body><a name='anchor_name' /></body></html>
instead of :
<html><head></head><body><a name='anchor_name'></a></body></html>
--
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.