blob: f514b208c7ac5e7d83afb3db25d28f4adc5fade5 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PNG image drag and drop: changing draggable attribute</title>
<style type="text/css">
img
{width:100px;
height:100px;}
</style>
</head>
<body onload="document.querySelector('img').setAttribute('draggable','false')">
<p><img ondragstart="document.querySelector('p').firstChild.nodeValue = 'FAIL'" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEElEQVR42mNgaGD4D8YwBgAw9AX9Y9zBwwAAAABJRU5ErkJggg==" alt="PNG green pixel"/></p>
<p>You should not be able to drag green box.</p>
</body>
</html>