#1672 new
Victor

writeAttribute("draggable", true) shouldn't be translated into draggable="draggable"

Reported by Victor | January 24th, 2013 @ 08:47 PM

HTML5 attributes draggable and contenteditable should have value true in order to enable corresponding action (drag or edit content, respectively), i.e.

<div draggable="true">drag me</div>

is OK, but

<div draggable="draggable">drag me</div>

isn't recognized as draggable, at least in Chrome 24. But it isn't possible to set draggable to true with Element#writeAttribute, because it translates true internally:

function writeAttribute(element, name, value) {
  // skipped
  else if (value === true)
    element.setAttribute(name, name);
  // skipped
}

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Pages