"NameError: name 'self' is not defined" (RDFa parser, with TIME element containing another element) · Issue #576 · RDFLib/rdflib (original) (raw)
Given an HTML structure like the following:
<time><a href="http://example.org">2016-01-01</a></time>
the RDFa parser will abort with an unhandled NameError exception because the _get_literal()
function body references self
but we are not in an OO context at the time.
I'm working on a fix, with a unit test.