A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mail-archive.com/html5lib-discuss@googlegroups.com/msg00565.html below:

Self closing <title/> breaks parsing

Status: New
Owner: ----

New issue 195 by kovidgo...@gmail.com: Self closing <title/> breaks parsing
http://code.google.com/p/html5lib/issues/detail?id=195
A self closing title tag causes the parser to treat all subsequent text as CDATA. To reproduce run the following code in a python interpreter 
import html5lib
from lxml import etree
print etree.tostring(html5lib.parse('<html><head><title/></head></html>', namespaceHTMLElements=False, treebuilder='lxml'))
Output is:
<html><head><title>&lt;/head&gt;&lt;/html&gt;</title></head><body/></html>

Output should be
<html><head><title/></head><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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4