Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent RDFa parser from failing on time elements with child nodes #577

Merged
merged 1 commit into from
Jan 28, 2016

Commits on Jan 16, 2016

  1. Prevent RDFa parser from failing on time elements with child nodes

    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 fixes RDFLib#576.
    
    Signed-off-by: Dan Scott <dan@coffeecode.net>
    dbs committed Jan 16, 2016
    Configuration menu
    Copy the full SHA
    8bbbc80 View commit details
    Browse the repository at this point in the history