- From: <bugzilla@jessica.w3.org>
- Date: Tue, 18 May 2010 05:00:39 +0000
- To: public-html-bugzilla@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9756
Summary: <p>What fruits do you like?</p> <ol
ondragstart="dragStartHandler(event)"> <li draggable
data-value="fruit-apple">Apples</li> <li draggable
data-value="fruit-orange">Oranges</li> <li draggable
data-value="fruit-pear">Pears</li> </ol> <script>
var int
Product: HTML WG
Version: unspecified
Platform: Other
URL: http://www.whatwg.org/specs/web-apps/current-work/#int
roduction-5
OS/Version: other
Status: NEW
Severity: normal
Priority: P3
Component: HTML5 spec (editor: Ian Hickson)
AssignedTo: ian@hixie.ch
ReportedBy: contributor@whatwg.org
QAContact: public-html-bugzilla@w3.org
CC: mike@w3.org, public-html@w3.org
Section: http://www.whatwg.org/specs/web-apps/current-work/#introduction-5
Comment:
<p>What fruits do you like?</p> <ol ondragstart="dragStartHandler(event)">
<li draggable data-value="fruit-apple">Apples</li> <li draggable
data-value="fruit-orange">Oranges</li> <li draggable
data-value="fruit-pear">Pears</li> </ol> <script> var internalDNDType =
'text/x-example'; // set this to something specific to your site function
dragStartHandler(event) { if (event.target instanceof HTMLLIElement) {
// use the element's data-value="" attribute as the value to be moving:
event.dataTransfer.setData(internalDNDType, event.target.dataset.value);
event.effectAllowed = 'move'; // only allow moves } else {
event.preventDefault(); // don't allow selection to be dragged } }
</script>
Posted from: 202.70.51.124
--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 18 May 2010 05:00:53 UTC