<!DOCTYPEHTML>
<html> <!-- This test is copied from test_copypaste.html, and the main purpose of it is to test copy pasting works when the selected contents have shadow trees involved.
-->
<head>
<title>Test for copy/paste</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/EventUtils.js"></script>
<script type="text/javascript" src="copypaste_shadow_dom.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<p id="display"></p>
<div id="content"style="display: none">
</div>
<pre id="test">
<script class="testbody" type="text/javascript">
SimpleTest.waitForExplicitFinish();
SimpleTest.registerCleanupFunction(function() {
// SpecialPowers would reset the pref after the
// test is done, and this might to lead some
// inconsistent behaviours if we keep the selection
// there.
window.getSelection().removeAllRanges();
});
<div id="title"title="title to have a long HTML line">This is a <em>draggable</em> bit of text.</div>
<div id="host1">
<template shadowrootmode="open">
<span id="shadow-content">Shadow Content1</span>
</template>
</div>
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.