New issue
Advanced search Search tips

Issue 775008 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

in a contenteditable div, node which include draggable attribute can't be selected

Reported by gongke...@gmail.com, Oct 16 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Steps to reproduce the problem:
1, Create a contenteditable element like:
<div contenteditable=true>
    <p>Don't include the draggable attribute <span contenteditable="false">@usr1</span> of dinosaurs.
    </p>
    <p>Include draggable  attribute<span contenteditable="false" draggable="true">@user1</span> can't selected
    </p>
</div>

2,select text

What is the expected behavior?
in a contenteditable div, node which include draggable  attribute  can be selected

What went wrong?
in a contenteditable div, node which include draggable  attribute  can't be selected

Did this work before? N/A 

Does this work in other browsers? No

Chrome version: 61.0.3163.100  Channel: stable
OS Version: OS X 10.11.6
Flash Version:
 
QQ20171016-205858@2x.png
30.5 KB View Download
Labels: Needs-Triage-M61

Comment 2 by yosin@chromium.org, Oct 17 2017

Components: -Blink>Editing Blink>Editing>Selection
Labels: OS-Windows
Status: WontFix (was: Unconfirmed)
Mark WontFix since Blink add user-select:none for draggrable attribute.

Sample page: http://jsbin.com/bajiluqato/edit?html,css,js,output

HTMLElement::CollectStyleForPresentationAttribute(...) {
...
  } else if (name == draggableAttr) {
    UseCounter::Count(GetDocument(), WebFeature::kDraggableAttribute);
    if (DeprecatedEqualIgnoringCase(value, "true")) {
      AddPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUserDrag,
                                              CSSValueElement);
      AddPropertyToPresentationAttributeStyle(style, CSSPropertyUserSelect,
                                              CSSValueNone);
...

Sign in to add a comment