h***@public.gmane.org
2011-03-17 21:46:36 UTC
Status: New
Owner: ----
New issue 181 by eric.pro...-***@public.gmane.org:
parserError "expected-named-closing-tag-but-got-eof" datavars is not a dict
http://code.google.com/p/html5lib/issues/detail?id=181
This code triggers the problem:
<!doctype html>
<title>x</titleff>
</body>
I get an errorName of "expected-named-closing-tag-but-got-eof",
and params field of "title"
The first field resolves to
_(u"Unexpected end of file. Expected end tag (%(name)s)."),
but I'm not given a hash to work with.
Fix:
Index: html5parser.py
===================================================================
--- html5parser.py (revision 61813)
+++ html5parser.py (working copy)
@@ -1507,7 +1507,7 @@
def processEOF(self):
self.parser.parseError("expected-named-closing-tag-but-got-eof",
- self.tree.openElements[-1].name)
+ {'name': self.tree.openElements[-1].name})
self.tree.openElements.pop()
self.parser.phase = self.parser.originalPhase
self.parser.phase.processEOF()
Owner: ----
New issue 181 by eric.pro...-***@public.gmane.org:
parserError "expected-named-closing-tag-but-got-eof" datavars is not a dict
http://code.google.com/p/html5lib/issues/detail?id=181
This code triggers the problem:
<!doctype html>
<title>x</titleff>
</body>
I get an errorName of "expected-named-closing-tag-but-got-eof",
and params field of "title"
The first field resolves to
_(u"Unexpected end of file. Expected end tag (%(name)s)."),
but I'm not given a hash to work with.
Fix:
Index: html5parser.py
===================================================================
--- html5parser.py (revision 61813)
+++ html5parser.py (working copy)
@@ -1507,7 +1507,7 @@
def processEOF(self):
self.parser.parseError("expected-named-closing-tag-but-got-eof",
- self.tree.openElements[-1].name)
+ {'name': self.tree.openElements[-1].name})
self.tree.openElements.pop()
self.parser.phase = self.parser.originalPhase
self.parser.phase.processEOF()
--
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-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to html5lib-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/html5lib-discuss?hl=en-GB.
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-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to html5lib-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/html5lib-discuss?hl=en-GB.