Commits

Tom Morris committed d058e5b

same-element passes

Comments (0)

Files changed (2)

test/examples/simple_person_reference_same_element.html

+<!DOCTYPE html>
+<html>
+<head>
+  <meta http-equiv="content-type" content="text/html; charset=utf-8">
+  <title>Simple_person_reference</title>
+</head>
+<body>
+  <span class="h-card p-name">Frances Berriman</span>
+</body>
+</html>
     p = Parser(open("test/examples/simple_person_reference_implied.html"))
     result = p.to_dict()
     assert result["items"][0]["properties"] == {u'name': [u'Frances Berriman']}
+
+def test_simple_person_reference_same_element():
+    p = Parser(open("test/examples/simple_person_reference_same_element.html"))
+    result = p.to_dict()
+    assert result["items"][0]["properties"] == {u'name': [u'Frances Berriman']}