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
Annotator can now de serialise annotation in XML documents. Fixesopenannotation#54
Previously the annotator failed to parse the XPaths stored on the
annotations when loaded into an XHTML document served as
application/xhtml+xml. We now check to see if the current document is an
XML one and if it is try to resolve any namespaced elements first by using
a namespace resolver created with document.createNSResolver() then falling
back to a cruder method of defining a custom resolver and appending a
custom namespace to all nodes.
Also added a dev.xhtml file for specifically testing the injection of
annotations into an XHTML document. This can be removed once we have a
working browser test runner.
<p><strong>Pellentesque habitant morbi tristique</strong> senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. <ahref="#">Donec non enim</a> in turpis pulvinar facilisis. Ut felis.</p>
37
+
38
+
<h2>Header Level 2</h2>
39
+
40
+
<ol>
41
+
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>
42
+
<li>Aliquam tincidunt mauris eu risus.</li>
43
+
</ol>
44
+
45
+
<blockquote><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.</p></blockquote>
46
+
47
+
<h3>Header Level 3</h3>
48
+
49
+
<ul>
50
+
<liid="listone">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>
51
+
<liid="listtwo">Aliquam tincidunt mauris eu risus.</li>
0 commit comments