<!-- Snipping a mixture of nodes and portions of text -->
<test>
<source startContainer="text()[2]"
startOffset="1"
endContainer="comment()[1]"
endOffset="3">Fox<fox/>Fox<bear><?cow ?></bear><!--comment--></source>
<result>Fox<fox/>F<!--ment--></result>
<extract>ox<bear><?cow ?></bear><!--com--></extract>
</test>
<!-- Extracting with a collapsed range from a text node. -->
<test>
<source startContainer="text()[1]"
endContainer="text()[1]"
startOffset="4"
endOffset="4">The quick fox</source>
<result>The quick fox</result>
<extract/>
</test>
<!-- Extracting with a collapsed range from a non-text node. -->
<test>
<source startContainer="."
endContainer="."
startOffset="0"
endOffset="0">Fox<fox/>Fox<bear/><!--comment--></source>
<result>Fox<fox/>Fox<bear/><!--comment--></result>
<extract/>
</test>
</root>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.