testing/web-platform/tests/html/editing/dnd/events/018.xhtml
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Wed, 25 May 2022 06:59:42 +0000
changeset 618796 3399ecb2fc4c375cd0110ffdf18a04e04395cbd5
parent 388141 f95a678186b46649eee6cf8c6adbdf46c320f300
permissions -rw-r--r--
no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD da -> 345f0d117ec12e01e798088f7eab03d63dbcae1c es-AR -> 5008da5104ab9c3a668b1afd1a6ae7901d8b905f es-CL -> 0f970e57544997fe43283f0e4d24e51b6373de82 et -> fa017ffe89319ac9a820858bf9a106776b45d9ed ia -> c304602f0b999e3100106f9e532149f111b6b922 is -> 6998af2ff6115c0456314dea3981768ecb67c157 pt-BR -> 398095bb5d9abc417ca501ce58b105f7ddca5f88 vi -> 83e057053e007e3ee19b2fb7a09d745ceaa9615f

<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Link drag and drop: events after dragenter is cancelled</title>
<script type="application/ecmascript">
function start(event)
  {event.preventDefault();}
function dragMe(event)
  {say('FAIL (drag event should not fire if dragstart is cancelled)');}
function enterBody(event)
  {event.preventDefault();
  say('FAIL (dragover event should not fire if dragstart is cancelled)');}
function overBody(event)
  {event.preventDefault();
  say('FAIL (dragover event should not fire if dragstart is cancelled)');}
function dropIt(event)
  {say('FAIL (drop event should not fire if dragstart is cancelled)');}
function say(it)
  {document.querySelector('pre').appendChild(document.createTextNode(it + '\n'));}
</script>
</head>
<body ondragenter="enterBody(event)" ondragover="overBody(event)" ondrop="dropIt(event)">
<p><a href="data:text/plain,1" ondragstart="start(event)" ondrag="dragMe(event)">Try to drag me</a></p>
<p>You should not be able to drag link above.</p>
<pre/>
</body>
</html>