Discussion:
Issue 181 in html5lib: parserError "expected-named-closing-tag-but-got-eof" datavars is not a dict
h***@public.gmane.org
2011-03-17 21:46:36 UTC
Permalink
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()
--
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.
h***@public.gmane.org
2013-04-09 21:54:03 UTC
Permalink
Updates:
Status: Fixed

Comment #1 on issue 181 by geoffers:
parserError "expected-named-closing-tag-but-got-eof" datavars is not a dict
http://code.google.com/p/html5lib/issues/detail?id=181

https://github.com/html5lib/html5lib-python/commit/3640fe8a62d12497deb76ebfc348be7fb0158284
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups "html5lib-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to html5lib-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send an email to html5lib-discuss-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/html5lib-discuss?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...