You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
dbs
added a commit
to dbs/rdflib
that referenced
this issue
Jan 16, 2016
The _get_literal() function in the RDFa parser referred to a self instance that
does not exist. This led to a NameError exception if the HTML to be parsed
included a TIME element with one or more child nodes, such as
'<time><em>2016-01-01</em></time>'. Removing the reference to 'self' fixes
the problem and fixesRDFLib#576.
Signed-off-by: Dan Scott <dan@coffeecode.net>
Given an HTML structure like the following:
the RDFa parser will abort with an unhandled NameError exception because the
_get_literal()
function body referencesself
but we are not in an OO context at the time.I'm working on a fix, with a unit test.
The text was updated successfully, but these errors were encountered: