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
}
previous lighthouse ticket #1672 by Victor
HTML5 attributes draggable and contenteditable should have value true in order to enable corresponding action (drag or edit content, respectively), i.e.
is OK, but
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: