blob: 4bf402cf15b101ae5de72ea23de1eb8ab9fa7c02 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Dropping selection in readonly textarea</title>
<style type="text/css">
textarea
{padding:1em;
width:300px;
height:100px;}
</style>
</head>
<body onload="window.getSelection().selectAllChildren(document.querySelector('p'))">
<p>Drag me</p>
<p>Try to drag selected text into the input below. You should not be able to drop it here.</p>
<p><textarea readonly="readonly" placeholder="Try to drop selected text here"/></p>
</body>
</html>